Bug 256948 - Unicode regular expressions with codepoints > U+10000 corrupts string replacement in html
Summary: Unicode regular expressions with codepoints > U+10000 corrupts string replace...
Status: RESOLVED DUPLICATE of bug 205477
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-17 22:39 PDT by wcshds
Modified: 2023-05-18 14:56 PDT (History)
2 users (show)

See Also:


Attachments
example (41.53 KB, image/png)
2023-05-17 22:39 PDT, wcshds
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***