slevithan/xregexp

XRegExp.escape with hyphen/comma/hash returns regex incompatible with ES6 flag u

slevithan opened this issue · 1 comments

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 #.

Last diff fixed in 93f3001.