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

Description wcshds 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.
Comment 1 Alexey Proskuryakov 2023-05-18 14:56:10 PDT
This does look identical.

*** This bug has been marked as a duplicate of bug 205477 ***