[Webkit-unassigned] [Bug 249146] Regular expression fails in WebKit only: invalid group specifier name

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 16 18:59:06 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249146

--- Comment #5 from Vladimir Prelovac <vprelovac at gmail.com> ---
(In reply to Mark Lam from comment #4)
> (In reply to Vladimir Prelovac from comment #3)
> > > *** This bug has been marked as a duplicate of bug 174931 ***
> > 
> > I've compiled trunk with the patch in and want to report that this problem
> > is still not fixed.
> 
> Are you sure you're building the latest trunk?  I just tried against trunk
> also, and I also no longer see that SyntaxError.  Looks fixed to me.

Thanks for double checking. I did indeed pull the trunk an hour ago and verified it is latest trunk by verifying the patch was applied. (for example Source/JavaScriptCore/runtime/RegExp.cpp line 252 is " && !pattern.m_containsLookbehinds") The Webkit version also shows as 615.1.15+

Then I went to https://runjs.co (since don't have inspector in minibrowser/run-safari) and ran:

let tokens = "test".match(/(?<=\s+|^)["'‘“'"[({⟨]?(.*?[.?!])(\s[.?!])*["'’”'"\])}⟩]?(?=\s+|$)|(?<=\s+|^)\S(.*?[.?!])(\s[.?!])*(?=\s+|$)/g);

Producing:
SyntaxError: Invalid regular expression: invalid group specifier name

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221217/6044ba9a/attachment.htm>


More information about the webkit-unassigned mailing list