diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-04-21 18:11:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 18:11:43 -0400 |
commit | f022febfe95ebbe5bc4e9e457353ceea642327b9 (patch) | |
tree | 6c25e8eb17e007960fe440476abbc466f0e17844 /ext/js | |
parent | b40cfe0458f277b1153c3ebc6713305491dbec22 (diff) |
Fix incorrect return type causing an error (#1623)
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/language/translator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js index 3ee9c3b7..dc91d9eb 100644 --- a/ext/js/language/translator.js +++ b/ext/js/language/translator.js @@ -172,7 +172,7 @@ class Translator { const {alphanumeric, wildcard} = options; text = this._getSearchableText(text, alphanumeric); if (text.length === 0) { - return [[], 0]; + return {dictionaryEntries: [], originalTextLength: 0}; } const deinflections = await ( |