summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-24 20:20:46 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-24 20:20:46 -0700
commit1b278320542fd18a6426b433ea4d042781311812 (patch)
treee80d2525a8b23c8f216731f68722191a48667509
parent125df215dd06355f26e117e8fd20e2d6a9ee1c22 (diff)
Deinflection now same as in Yomichan for Anki
-rw-r--r--ext/jp/translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/jp/translator.js b/ext/jp/translator.js
index 36ed60f3..b3e96538 100644
--- a/ext/jp/translator.js
+++ b/ext/jp/translator.js
@@ -46,7 +46,7 @@ class Translator {
findTerm(text) {
const groups = {};
- for (let i = text.length; i >= 0; --i) {
+ for (let i = text.length; i > 0; --i) {
const term = text.slice(0, i);
const dfs = this.deinflector.deinflect(term, t => {