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
- 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.
class ExampleResults {
/// The term that you searched for.
@ -416,7 +417,7 @@ class PhrasePageScrapeResultData {
/// Tags associated with this search result.
List<KanjiKanaPair> otherForms;
/// Pronounciation of the search result.
/// Pronounciation of the search result.
List<AudioFile> audio;
/// Notes associated with the search result.
@ -710,7 +711,7 @@ class JishoResult {
};
}
/// Metadata with result status.
/// Metadata with result status.
class JishoResultMeta {
/// HTTP status code.
int status;

View File

@ -3,7 +3,7 @@ String removeNewlines(String str) {
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) {
final result = data.substring(startIndex, endIndex);
return removeNewlines(result).trim();

View File

@ -1,5 +1,5 @@
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
homepage: https://github.com/h7x4ABk3g/unofficial_jisho_api_dart/