change jpod101 kana check to detect katakana

This commit is contained in:
siikamiika 2020-01-27 23:28:01 +02:00
parent dd019ecf68
commit 02e0e24153

View File

@ -22,7 +22,7 @@ const audioUrlBuilders = new Map([
let kana = definition.reading;
let kanji = definition.expression;
if (!kana && wanakana.isHiragana(kanji)) {
if (!kana && jpIsStringEntirelyKana(kanji)) {
kana = kanji;
kanji = null;
}