diff options
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r-- | ext/bg/js/translator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 6be80581..606f6ec5 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -131,11 +131,11 @@ class Translator { } findKanji(text) { - let results = []; - + let results = []; const processed = {}; + for (const c of text) { - if (!processed.has(c)) { + if (!processed[c]) { results = results.concat(this.dictionary.findKanji(c)); processed[c] = true; } |