[Webkit-unassigned] [Bug 249146] New: Regular expression handling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 12 07:09:49 PST 2022


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

            Bug ID: 249146
           Summary: Regular expression handling
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vprelovac at gmail.com

The following regular expression works in Chrome and Firefox,  but fails in WebKit:

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

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/20221212/bff0eb2a/attachment.htm>


More information about the webkit-unassigned mailing list