-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace [\w\W] with [\s\S] and [0-9] with \d in regexes #1107
Conversation
Wow, I actually didn't know about the What's your opinion about this @LeaVerou, @zeitgeist87 ? |
I'm fine with it :) |
According to https://regex101.com/ the |
@zeitgeist87, I agree. @valtlai, would you mind updating this PR to use one of |
@Golmote Yeah, done. |
Thanks for contributing! |
* support for Template Toolkit 2 * optimized quoted string regexes * optimized double-quoted string regex * fully qualified tt2 plug-in names don't work Also use \w. * do not use empty character class See #1107. * put keyword tests in alphabetical order * ordered tt2 keywords alphabetically * removed redundant operator rule for tt2 * removed possibly existing old rules before inserti * indentation * allow backslash in front of lf in tt2 strings * indentation * avoid backtracking * escape xml special characters * indent with tab instead of spaces * greedy is no longer needed for variables Also use \w instead of explicit character class. * re-generated with gulp
[\w\W]
→[\s\S]
[0-9]
→\d