Fix formatting
This commit is contained in:
parent
7f578f8d97
commit
de9c0c80d6
|
@ -1,3 +1,7 @@
|
||||||
|
## 2.0.2
|
||||||
|
|
||||||
|
- Fixed formatting
|
||||||
|
|
||||||
## 2.0.1
|
## 2.0.1
|
||||||
|
|
||||||
- Fixed the readme
|
- Fixed the readme
|
||||||
|
|
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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/
|
||||||
|
|
Loading…
Reference in New Issue