Skip to content

Commit

Permalink
🐛 Treat extended ascii chars as unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
richardfrost committed Mar 25, 2019
1 parent 0fd77a9 commit eca72aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/lib/word.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit eca72aa

Please sign in to comment.