Created
May 5, 2015 22:29
-
-
Save whymarrh/c53a508b70e659aafe7f to your computer and use it in GitHub Desktop.
A silly re
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
var re = /^(?!app[\\\/])|(app[\\\/]test)/; | |
console.log(); | |
console.log(); | |
console.log(); | |
console.log(); | |
[ | |
"app/test/Config.js", | |
"app/test/OtherConfig.js", | |
"app/test/Foo.js", | |
"app/Foo.js", | |
"app/bar.js", | |
"app/foo/bar.js", | |
"app/test/bar/baz.js", | |
"app/renderer/foo.js", | |
"vendor/bar.js", | |
"vendor/foo/bar.js", | |
"vendor/baz.js", | |
"app\\test\\Config.js", | |
"app\\test\\OtherConfig.js", | |
"app\\test\\Foo.js", | |
"app\\Foo.js", | |
"app\\bar.js", | |
"app\\foo\\bar.js", | |
"app\\test\\bar\\baz.js", | |
"app\\renderer\\foo.js", | |
"vendor\\bar.js", | |
"vendor\\foo\\bar.js", | |
"vendor\\baz.js", | |
].filter(re.test.bind(re)).forEach(line => console.log(line)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment