Fix formatting

This commit is contained in:
Oystein Kristoffer Tveit 2021-07-26 20:17:30 +02:00
parent 7f578f8d97
commit de9c0c80d6
4 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,7 @@
## 2.0.2
- Fixed formatting
## 2.0.1 ## 2.0.1
- Fixed the readme - Fixed the readme

View File

@ -231,6 +231,7 @@ class ExampleResultData {
}; };
} }
} }
/// The main wrapper containing data about the query and whether or not it was successful. /// The main wrapper containing data about the query and whether or not it was successful.
class ExampleResults { class ExampleResults {
/// The term that you searched for. /// The term that you searched for.
@ -416,7 +417,7 @@ class PhrasePageScrapeResultData {
/// Tags associated with this search result. /// Tags associated with this search result.
List<KanjiKanaPair> otherForms; List<KanjiKanaPair> otherForms;
/// Pronounciation of the search result. /// Pronounciation of the search result.
List<AudioFile> audio; List<AudioFile> audio;
/// Notes associated with the search result. /// Notes associated with the search result.
@ -448,7 +449,7 @@ class PhrasePageScrapeResultData {
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/// Kanji/Furigana pair, or just kana as word. /// Kanji/Furigana pair, or just kana as word.
/// ///
/// Which field acts as kanji and/or kana might be unreliable, which is why both are nullable. /// Which field acts as kanji and/or kana might be unreliable, which is why both are nullable.
class JishoJapaneseWord { class JishoJapaneseWord {
/// Usually kanji or kana. /// Usually kanji or kana.
@ -520,9 +521,9 @@ class JishoWordSource {
// ignore: public_member_api_docs // ignore: public_member_api_docs
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
'language:': language, 'language:': language,
'word': word, 'word': word,
}; };
} }
/// One sense of the word. /// One sense of the word.
@ -645,13 +646,13 @@ class JishoAttribution {
/// The main API data class, collecting all information of one result in one place. /// The main API data class, collecting all information of one result in one place.
class JishoResult { class JishoResult {
/// The main version of the word /// The main version of the word
/// ///
/// This value might sometimes appear as some kind of hash or encoded version of the word. /// This value might sometimes appear as some kind of hash or encoded version of the word.
/// Whenever it happens, the word usually originates taken from dbpedia /// Whenever it happens, the word usually originates taken from dbpedia
String slug; String slug;
/// Whether the word is common. /// Whether the word is common.
/// ///
/// Dbpedia sometimes omit this value. /// Dbpedia sometimes omit this value.
bool? isCommon; bool? isCommon;
@ -710,7 +711,7 @@ class JishoResult {
}; };
} }
/// Metadata with result status. /// Metadata with result status.
class JishoResultMeta { class JishoResultMeta {
/// HTTP status code. /// HTTP status code.
int status; int status;

View File

@ -3,7 +3,7 @@ String removeNewlines(String str) {
return str.replaceAll(RegExp(r'(?:\r|\n)'), '').trim(); return str.replaceAll(RegExp(r'(?:\r|\n)'), '').trim();
} }
/// Remove alltext between two positions, and remove all newlines /// Remove all text between two positions, and remove all newlines
String getStringBetweenIndicies(String data, int startIndex, int endIndex) { String getStringBetweenIndicies(String data, int startIndex, int endIndex) {
final result = data.substring(startIndex, endIndex); final result = data.substring(startIndex, endIndex);
return removeNewlines(result).trim(); return removeNewlines(result).trim();

View File

@ -1,5 +1,5 @@
name: unofficial_jisho_api name: unofficial_jisho_api
version: 2.0.1 version: 2.0.2
description: An unofficial api for searching and scraping the japanese dictionary Jisho.org description: An unofficial api for searching and scraping the japanese dictionary Jisho.org
homepage: https://github.com/h7x4ABk3g/unofficial_jisho_api_dart/ homepage: https://github.com/h7x4ABk3g/unofficial_jisho_api_dart/