summaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/japanese.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/mixed/js/japanese.js b/ext/mixed/js/japanese.js
index 78c419b2..1201e524 100644
--- a/ext/mixed/js/japanese.js
+++ b/ext/mixed/js/japanese.js
@@ -102,11 +102,7 @@ function jpDistributeFuriganaInflected(expression, reading, source) {
const shortest = Math.min(source.length, expression.length);
const sourceHiragana = jpKatakanaToHiragana(source);
const expressionHiragana = jpKatakanaToHiragana(expression);
- while (
- stemLength < shortest &&
- // sometimes an expression can use a kanji that's different from the source
- (!jpIsKana(source[stemLength]) || (sourceHiragana[stemLength] === expressionHiragana[stemLength]))
- ) {
+ while (stemLength < shortest && sourceHiragana[stemLength] === expressionHiragana[stemLength]) {
++stemLength;
}
const offset = source.length - stemLength;