Implement RegExp Unicode Property Escapes
Categories
(Core :: JavaScript Engine, enhancement, P2)
Tracking
()
People
(Reporter: leonardo.balter, Unassigned)
References
()
Details
(Keywords: dev-doc-complete, parity-chrome, parity-safari)
Updated•8 years ago
|
Reporter | ||
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Updated•6 years ago
|
Comment 14•5 years ago
|
||
Just wondering where this enhancement stands? I know it's a minor thing, but it would be great for creating libraries with true multi-language support for the browser.
Comment 15•5 years ago
|
||
The lack of Unicode-awareness on RegExp
, even when using flag u
, makes Mozilla’s own extension B!tch to Boss buggy, since it rely on \b
to detect word boundaries. More generally, as someone else put it, «This makes the RegEx character classes largely useless for dealing with any real language.».
I’m posting this here since it may be considered part of the same issue, as:
(In reply to Jeff Walden [:Waldo] from comment #5)
If Chrome and Safari already implement this, it's probable updating our irregexp import […] will mean that […] we'll just Get This Sort Of For Free.
Comment 16•5 years ago
|
||
This will be landing in Firefox 78. It should be available in Nightly within a day or so. See bug 1634135.
Comment 17•5 years ago
|
||
🥳
Just to Confirm…
This means we can start writing this:
/[_$\p{ID_Start}][_$\u200c\u200d\p{ID_Continue}\u034f]*/u
Instead of this:
/[_$a-zA-Z\xaa (very long regular expression here) \u034f]*/u
… right?
Comment 18•5 years ago
|
||
@svnpenn You get no apologies from me, and the fact that you are somehow still on this thread is unacceptable.
My apologies to everyone else, it was not intended as spam, but my apologies all the same. I am still curious to the specifics, because the discussion points to \b
which is much more subtle compared to \p
which is implied by the op, and trying to pinpoint it in the linked threads is proving hard.
I do appreciate the moderation of my long expression, which I was not aware is problematic in this community. I would appreciate folks moderate their inbox, and accept my apologies.
Comment 19•5 years ago
|
||
(In reply to Iain Ireland [:iain] from comment #16)
This will be landing in Firefox 78. It should be available in Nightly within a day or so. See bug 1634135.
Thanks, this looks an awesome update to Firefox! I’ve updated my review on the extension to link to the bug you mention.
Comment 20•5 years ago
|
||
Fixed by the landing of bug 1634135.
Updated•5 years ago
|
Comment 21•4 years ago
|
||
Developer docs:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/78#JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escapes
Description
•