refactor: use unicode escapes for non-ASCII space keys in Escape Smart Characters

This commit is contained in:
HarelKatz 2026-06-05 14:12:28 +03:00
parent 77818c6281
commit 2bb61b056f

View File

@ -119,11 +119,11 @@ const SMART_MAP = {
"·": ".", // ·
// Non-ASCII spaces
" ": " ", // NBSP
"": " ", // en space
"": " ", // em space
"": " ", // thin space
"": " " // hair space
"\u00A0": " ", // NBSP
"\u2002": " ", // en space
"\u2003": " ", // em space
"\u2009": " ", // thin space
"\u200A": " " // hair space
};
export default EscapeSmartCharacters;