Skip to content

Commit 197671d

Browse files
committed
minor parser improvements
1 parent 3d37569 commit 197671d

File tree

3 files changed

+125
-74
lines changed

3 files changed

+125
-74
lines changed

lib/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = {
8989

9090
// regular expressions
9191
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
92-
REGEX_NON_SPECIAL_CHAR: /^[^@![\].,$*+?^{}()|\\/]+/,
92+
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
9393
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
9494
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
9595
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,

0 commit comments

Comments
 (0)