From eca72aac9873d778a31fcd325a32f1d7768a9b13 Mon Sep 17 00:00:00 2001 From: Richard Frost Date: Mon, 25 Mar 2019 12:16:15 -0600 Subject: [PATCH] :bug: Treat extended ascii chars as unicode --- src/script/lib/word.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/lib/word.ts b/src/script/lib/word.ts index 63b8c4ce..70b95b87 100644 --- a/src/script/lib/word.ts +++ b/src/script/lib/word.ts @@ -97,7 +97,7 @@ export default class Word { static containsDoubleByte(str): boolean { if (!str.length) return false; - if (str.charCodeAt(0) > 255) return true; + if (str.charCodeAt(0) > 127) return true; return Word._unicodeRegex.test(str); }