Bug 256948

Summary: Unicode regular expressions with codepoints > U+10000 corrupts string replacement in html
Product: WebKit Reporter: wcshds
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, msaboff
Priority: P2    
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
example none

wcshds
Reported 2023-05-17 22:39:11 PDT
Created attachment 466395 [details] example I know there is already a bug report. https://bugs.webkit.org/show_bug.cgi?id=205477 ``` "😭".replace(/[^😭]/u, "") ``` While this regular expression works fine in the console, it still seems to return only the high surrogate in the html.
Attachments
example (41.53 KB, image/png)
2023-05-17 22:39 PDT, wcshds
no flags
Alexey Proskuryakov
Comment 1 2023-05-18 14:56:10 PDT
This does look identical. *** This bug has been marked as a duplicate of bug 205477 ***
Note You need to log in before you can comment on or make changes to this bug.