Very basic manga info edit, currently will break everything if used, tags and cover edit not working

This commit is contained in:
Jobobby04
2020-07-11 14:53:59 -04:00
parent bbf1c4ffd9
commit 044c638079
14 changed files with 613 additions and 16 deletions
+5
View File
@@ -7,3 +7,8 @@ fun List<String>.dropEmpty() = filter { it.isNotEmpty() }
fun String.removeArticles(): String {
return this.replace(Regex("^(an|a|the) ", RegexOption.IGNORE_CASE), "")
}
fun String.trimOrNull(): String? {
val trimmed = trim()
return if (trimmed.isBlank()) null else trimmed
}