You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
slevithan
changed the title
XRegExp.escape with hyphen returns regex incompatible with ES6 flag u
XRegExp.escape with hyphen/comma/hash returns regex incompatible with ES6 flag u
Feb 16, 2021
ES6 flag
u
disallows\-
, so we need an alternative way to escape hyphens.This is similar to #197, which fixed this for whitespace.
Edit: Same problem for escaped
,
and#
.The text was updated successfully, but these errors were encountered: