Closed keith-hall closed 7 years ago
For example, this regex: (?:[[-\w]{{nonascii}}]|{{escape}})
(?:[[-\w]{{nonascii}}]|{{escape}})
It seems it detects the [-\w] as a range rather than a nested character class, and the ] is scoped as a literal. It gets it right if you remove the - or move it to after the \w.
[-\w]
]
-
\w
For example, this regex:
(?:[[-\w]{{nonascii}}]|{{escape}})
It seems it detects the
[-\w]
as a range rather than a nested character class, and the]
is scoped as a literal. It gets it right if you remove the-
or move it to after the\w
.