Skip to content

Commit

Permalink
minor parser improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschlinkert committed Oct 31, 2019
1 parent 3d37569 commit 197671d
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 74 deletions.
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = {

// regular expressions
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
REGEX_NON_SPECIAL_CHAR: /^[^@![\].,$*+?^{}()|\\/]+/,
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
Expand Down
Loading

0 comments on commit 197671d

Please sign in to comment.