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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -