What is the techical reason the JavaScript regex class \w cannot be changed? -
there proposal update regex character classes \w, \d, \b, etc. when used unicode regex flag u (relevant es-discuss thread).
reading thread, arguments presented why \d should not messed with, import of javascript can't cast or coerce non-ascii digit characters numbers. far can tell, same logic doesn't apply \w.
is there compelling technical reason or edge-case i'm not seeing here? after we're talking opt-in flag.
part of reason ask in every other language i'm familiar possible write simple regex matches unicode word character whereas in javascript 1 must specify code point ranges.
Comments
Post a Comment