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 // Non-ASCII spaces
" ": " ", // NBSP "\u00A0": " ", // NBSP
"": " ", // en space "\u2002": " ", // en space
"": " ", // em space "\u2003": " ", // em space
"": " ", // thin space "\u2009": " ", // thin space
"": " " // hair space "\u200A": " " // hair space
}; };
export default EscapeSmartCharacters; export default EscapeSmartCharacters;