[Webkit-unassigned] [Bug 210576] New: Certain regexes with nested groups fail to match

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 15 15:58:10 PDT 2020


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

            Bug ID: 210576
           Summary: Certain regexes with nested groups fail to match
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ross.kirsling at sony.com

I'm not even sure what to title this, but I extracted it from test262/harness/testIntl.js.

The following is false for JSC but true for all other engines:
```
/(?:\w+-)+((\w){5,8})-\1/.test('de-gregory-gregory')
```

This was as far as I could manage to shrink the regex.
(The backreference can be inlined and the nested group can be made a non-capturing group, but everything else seems needed?)

-- 
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/20200415/e8e9f53f/attachment.htm>


More information about the webkit-unassigned mailing list