<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement `u` (Unicode) flag for regular expressions"
href="https://bugs.webkit.org/show_bug.cgi?id=151597#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement `u` (Unicode) flag for regular expressions"
href="https://bugs.webkit.org/show_bug.cgi?id=151597">bug 151597</a>
from <span class="vcard"><a class="email" href="mailto:mathias@qiwi.be" title="Mathias Bynens <mathias@qiwi.be>"> <span class="fn">Mathias Bynens</span></a>
</span></b>
<pre>Seems like this has been implemented in Safari Technology Preview v9.1.1 (11601.6.10, 11602.1.25).
However, the implementation is buggy: <a href="http://mathias.html5.org/tests/javascript/regexp/">http://mathias.html5.org/tests/javascript/regexp/</a>
The following tests fail:
assert_equals(/𝌆{2}/u.test('𝌆𝌆'), true);
assert_equals(/\uD834\uDF06{2}/u.test('\uD834\uDF06\uD834\uDF06'), true);
assert_equals(/\W/iu.test('S'), true);
assert_equals(/\W/iu.test('K'), true);
Please fix this before shipping this in a stable release to avoid compatibility problems.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>