diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-01-22 21:53:47 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-01-24 20:15:25 -0500 |
commit | 317bf35bc039fb82b558c66adac236ff6a84d762 (patch) | |
tree | 2954ffca0b7be1dcf9a7da5966672e9da05e8111 /ext/bg/js/translator.js | |
parent | 1fa8a596266340606de3b090f0081f8ed1627065 (diff) |
Replace and remove old character/string testing functions
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r-- | ext/bg/js/translator.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 2fb36194..cda1099f 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -590,8 +590,7 @@ class Translator { if (!options.scanning.alphanumeric) { const ii = text.length; for (let i = 0; i < ii; ++i) { - const c = text[i]; - if (!jpIsCharacterJapanese(c)) { + if (!jpIsCharCodeJapanese(text.charCodeAt(i))) { text = text.substring(0, i); break; } |