Last active
December 14, 2018 22:59
-
-
Save tomhodgins/141d587d9372761300bd5b4543805cd5 to your computer and use it in GitHub Desktop.
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
new RegExp( | |
[ | |
'\\\\', // a backslash | |
'(?!', // not followed by: | |
'[0-9a-fA-F]{1,6}', // - 1-6 hex characters, | |
'|\\n', // - or a newline | |
'|$', // - or the EOF | |
')' | |
].join(''), | |
'g' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment