From 2e0e7e06cb1d6c9227c57065032f05205fc5f205 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:59:32 +0300 Subject: [PATCH] Try with more characters --- packages/components/src/utils/strings.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/components/src/utils/strings.ts b/packages/components/src/utils/strings.ts index fcafb8b06a1007..f28c39f88c5984 100644 --- a/packages/components/src/utils/strings.ts +++ b/packages/components/src/utils/strings.ts @@ -12,6 +12,26 @@ const ALL_UNICODE_DASH_CHARACTERS = new RegExp( '\u007e', // ­ (soft hyphen) '\u00ad', + // ֊ (armenian hyphen) + '\u058a', + // ־ (hebrew punctuation maqaf) + '\u05be', + // ᐀ (canadian syllabics hyphen) + '\u1400', + // ᠆ (mongolian todo soft hyphen) + '\u1806', + // ‐ (hyphen) + '\u2010', + // non-breaking hyphen) + '\u2011', + // ‒ (figure dash) + '\u2012', + // – (en dash) + '\u2013', + // — (em dash) + '\u2014', + // ― (horizontal bar) + '\u2015', // ⁓ (swung dash) '\u2053', // ⁻ (superscript minus)