Very basic manga info edit, currently will break everything if used, tags and cover edit not working
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user