-
-
Save reportbase/fb83b35773701e58465e4da08a1d048b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function glob(str, rule) {try{return new RegExp("^" + rule.split("*").join(".*") + "$").test(str)}catch(e){return false}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment