fix some exceptions

This commit is contained in:
wareya committed 2019-05-13 20:08:12 -04:00
1 parent 2a69981d6e
commit c8b1f296fc
1 file changed
+4 -4
+4 -4
View File
@@ -901,20 +901,20 @@ function add_json_info(lookups, other_settings)
} }
else else
{ {
let possibilities = json_lookup_kana_exact(foundtext); let possibilities = json_lookup_kana_exact(dict, foundtext);
if(!other_settings.strict_epwing) if(!other_settings.strict_epwing)
{ {
for(let reading of entry.r_ele) for(let reading of entry.r_ele)
{ {
if(possibilities.length == 0) if(possibilities.length == 0)
possibilities = json_lookup_kana_exact(reading.reb); possibilities = json_lookup_kana_exact(dict, reading.reb);
} }
if(possibilities.length == 0) if(possibilities.length == 0)
possibilities = json_lookup_kana_inexact(foundtext); possibilities = json_lookup_kana_inexact(dict, foundtext);
for(let reading of entry.r_ele) for(let reading of entry.r_ele)
{ {
if(possibilities.length == 0) if(possibilities.length == 0)
possibilities = json_lookup_kana_inexact(reading.reb); possibilities = json_lookup_kana_inexact(dict, reading.reb);
} }
} }
if(possibilities.length > 0) if(possibilities.length > 0)