aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 => {