diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-01 22:30:30 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-01 22:30:30 -0700 |
commit | 036639aeafccfa20db0edd4780abbd391da74922 (patch) | |
tree | f753d74832f4e0c3efa49926f6883445d5bd18da /ext/bg/translator.js | |
parent | 92e62c798d750766fe6631cc4b1e9d67efe788f6 (diff) |
Fixes
Diffstat (limited to 'ext/bg/translator.js')
-rw-r--r-- | ext/bg/translator.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/translator.js b/ext/bg/translator.js index b03297cb..e76a1b07 100644 --- a/ext/bg/translator.js +++ b/ext/bg/translator.js @@ -42,7 +42,7 @@ class Translator { break; case 'edict': case 'enamdict': - this.dictionary.addTermsData(Translator.parseCsv(response)); + this.dictionary.addTermData(Translator.parseCsv(response)); break; } @@ -159,7 +159,7 @@ class Translator { static parseCsv(data) { const result = []; - for (const row in data.split('\n')) { + for (const row of data.split('\n')) { result.push(row.split('\t')); } |