1
0
mirror of https://github.com/h7x4/unofficial_jisho_api_dart.git synced 2025-12-20 01:10:40 +01:00

Fix some bugs

This commit is contained in:
2020-06-15 14:47:13 +02:00
parent 1e35cde24d
commit 8a86413fdd
2 changed files with 13 additions and 9 deletions

View File

@@ -240,7 +240,6 @@ String uriForExampleSearch(String phrase) {
ExampleResultData getKanjiAndKana(Element div) {
final ul = div.querySelector('ul');
final contents = ul.children;
var kanji = '';
var kana = '';
@@ -270,7 +269,7 @@ ExampleResultData getKanjiAndKana(Element div) {
kanji += unlifted;
kana += unlifted;
}
} else {
} else { // TODO: This doesn't catch the "。" when it's not in a tag
final text = content.text.trim();
if (text != null) {
kanji += text;