Created
July 2, 2020 01:11
-
-
Save miguelmota/3720d01f82e6e9eed74bd594ec792203 to your computer and use it in GitHub Desktop.
Node.js regex for matching all except a node_module
This file contains 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
// returns true if the value doesn't match "/node_modules/mymodule" | |
/^(?!\/node_modules\/mymodule)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment