V8 5.0 JavaScript engine adds /u regex flag to finally support matching any Unicode character
https://twitter.com/hashseed/status/709684655784599552 …
-
-
Replying to @novapatch
@slevithan But \b is still not unicode-based right? Too bad that /a\b/u.test('naïve') returns True... :(1 reply 0 retweets 1 like -
Replying to @ADssx @slevithan
true and unfortunate. the proposal to support unicode \d \w \b was rejectedhttps://github.com/mathiasbynens/es-regexp-unicode-character-class-escapes/blob/master/d-w-b.md …
1 reply 0 retweets 1 like -
Replying to @novapatch @slevithan
So sad :( so what would be the solution? A specific \p{b} character? Cc
@julien_c@rchampeimont1 reply 1 retweet 1 like -
Replying to @ADssx @slevithan and
the most standard solution would be to introduce \b{w} \B{w} as defined in http://unicode.org/reports/tr18/
1 reply 0 retweets 1 like -
Replying to @novapatch @slevithan and
That would be great! Is there any proposal to add this?
1 reply 0 retweets 0 likes -
Replying to @ADssx @slevithan and
no, I don’t think anyone has proposed it yet, but I would support it! /cc
@mathias1 reply 0 retweets 1 like -
Replying to @novapatch @slevithan and
How can I propose it? It's REALLY annoying when you deal with French
1 reply 0 retweets 0 likes
Create a repo with a formal proposal per https://tc39.github.io/process-document/ …. Example repo: https://github.com/mathiasbynens/es-regexp-unicode-property-escapes … (see issues)
-
-
Replying to @mathias
Hi I created one 3 months ago thought I could improve it later but didn't have time… here it is https://github.com/a455bcd9/es-regexp-unicode-extended-grapheme-custers …
@novapatch1 reply 0 retweets 0 likes -
Please let me know how I could improve it :)
@novapatch0 replies 0 retweets 0 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.