Javascript RegExp do not match on cyrillic strings to find word with boundaries

251 views
Skip to first unread message

captain obvious

unread,
Oct 16, 2017, 3:32:21 AM10/16/17
to Chromium-discuss
Example: "ілн".match(/(?!>)\bілн\b(?!<\/span>)/uig)
Actual Result: null
Expected Result: ["ілн"]

PhistucK

unread,
Oct 16, 2017, 3:38:26 AM10/16/17
to rom...@gmail.com, Chromium-discuss
If other browsers return the expected result, then you can use crbug.com/v8 to report a Chrome issue.
I tested Firefox and it returns null as well, so it might be working as designed and either your code is wrong (use stackoverflow.com to resolve your issue), or the specification is mishandling this case and you need to take this feedback to the ECMAScript working group, https://github.com/tc39/ecma262/issues.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages