diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/js/background/backend.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 3d8c4c4a..1238673b 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -1045,7 +1045,11 @@ class Backend { text.substring(0, scanningLength), findTermsOptions ); - if (definitions.length > 0 && sourceLength > 0) { + if ( + definitions.length > 0 && + sourceLength > 0 && + (sourceLength !== 1 || this._japaneseUtil.isCodePointJapanese(text[0])) + ) { const {expression, reading} = definitions[0]; const source = text.substring(0, sourceLength); for (const {text: text2, furigana} of jp.distributeFuriganaInflected(expression, reading, source)) { |