Skip to content

Commit de9c0c8

Browse files
committed
Fix formatting
1 parent 7f578f8 commit de9c0c8

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.2
2+
3+
- Fixed formatting
4+
15
## 2.0.1
26

37
- Fixed the readme

lib/src/objects.dart

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ class ExampleResultData {
231231
};
232232
}
233233
}
234+
234235
/// The main wrapper containing data about the query and whether or not it was successful.
235236
class ExampleResults {
236237
/// The term that you searched for.
@@ -416,7 +417,7 @@ class PhrasePageScrapeResultData {
416417
/// Tags associated with this search result.
417418
List<KanjiKanaPair> otherForms;
418419

419-
/// Pronounciation of the search result.
420+
/// Pronounciation of the search result.
420421
List<AudioFile> audio;
421422

422423
/// Notes associated with the search result.
@@ -448,7 +449,7 @@ class PhrasePageScrapeResultData {
448449
/* -------------------------------------------------------------------------- */
449450

450451
/// Kanji/Furigana pair, or just kana as word.
451-
///
452+
///
452453
/// Which field acts as kanji and/or kana might be unreliable, which is why both are nullable.
453454
class JishoJapaneseWord {
454455
/// Usually kanji or kana.
@@ -520,9 +521,9 @@ class JishoWordSource {
520521

521522
// ignore: public_member_api_docs
522523
Map<String, dynamic> toJson() => {
523-
'language:': language,
524-
'word': word,
525-
};
524+
'language:': language,
525+
'word': word,
526+
};
526527
}
527528

528529
/// One sense of the word.
@@ -645,13 +646,13 @@ class JishoAttribution {
645646
/// The main API data class, collecting all information of one result in one place.
646647
class JishoResult {
647648
/// The main version of the word
648-
///
649+
///
649650
/// This value might sometimes appear as some kind of hash or encoded version of the word.
650651
/// Whenever it happens, the word usually originates taken from dbpedia
651652
String slug;
652653

653654
/// Whether the word is common.
654-
///
655+
///
655656
/// Dbpedia sometimes omit this value.
656657
bool? isCommon;
657658

@@ -710,7 +711,7 @@ class JishoResult {
710711
};
711712
}
712713

713-
/// Metadata with result status.
714+
/// Metadata with result status.
714715
class JishoResultMeta {
715716
/// HTTP status code.
716717
int status;

lib/src/scraping.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ String removeNewlines(String str) {
33
return str.replaceAll(RegExp(r'(?:\r|\n)'), '').trim();
44
}
55

6-
/// Remove alltext between two positions, and remove all newlines
6+
/// Remove all text between two positions, and remove all newlines
77
String getStringBetweenIndicies(String data, int startIndex, int endIndex) {
88
final result = data.substring(startIndex, endIndex);
99
return removeNewlines(result).trim();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: unofficial_jisho_api
2-
version: 2.0.1
2+
version: 2.0.2
33

44
description: An unofficial api for searching and scraping the japanese dictionary Jisho.org
55
homepage: https://github.com/h7x4ABk3g/unofficial_jisho_api_dart/

0 commit comments

Comments
 (0)