Bug 289028

Summary: (Regression 290982@main) Regex regression related to non-capturing group combined with or
Product: WebKit Reporter: pfg
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, daniel_liu4, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=288102

pfg
Reported 2025-03-03 17:20:13 PST
The expression `/^(?:H|Hangul)$/.test("Hangul")` returns false when it should return true. This was regressed by commit 5d4feeaef67a95a369beb8242abd28bf64bc4251
Attachments
Radar WebKit Bug Importer
Comment 2 2025-03-03 17:24:08 PST
daniel_liu4
Comment 3 2025-03-04 12:58:41 PST
*** Bug 289110 has been marked as a duplicate of this bug. ***
daniel_liu4
Comment 4 2025-03-04 13:01:18 PST
EWS
Comment 5 2025-03-05 09:30:29 PST
Committed 291631@main (d5f2be06d7fd): <https://commits.webkit.org/291631@main> Reviewed commits have been landed. Closing PR #41871 and removing active labels.
EWS
Comment 6 2025-03-26 15:15:43 PDT
Committed 289651.340@safari-7621-branch (e369065599cd): <https://commits.webkit.org/289651.340@safari-7621-branch> Reviewed commits have been landed. Closing PR #2890 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.