fix(core): align patch Unicode matching (#38160)

This commit is contained in:
Aiden Cline 2026-07-21 13:47:52 -05:00 committed by GitHub
commit 6ec17e5d55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View file

@ -228,7 +228,6 @@ const normalize = (value: string) =>
.replace(/[]/g, "'")
.replace(/[“”„‟]/g, '"')
.replace(/[‐‑‒–—―−]/g, "-")
.replace(/…/g, "...")
.replace(/[\u00A0\u2002-\u200A\u202F\u205F\u3000]/g, " ")
const splitBom = (text: string) =>
text.startsWith("\uFEFF") ? { bom: true, text: text.slice(1) } : { bom: false, text }