allow episode in title if no other characters
This commit is contained in:
parent
419d33a3ac
commit
1ba67280a6
4 changed files with 11 additions and 9 deletions
|
@ -29,5 +29,12 @@ class AnimeNameAdapter {
|
|||
null
|
||||
}
|
||||
}
|
||||
|
||||
fun removeEpisodeNumber(text: String): String {
|
||||
val regexPattern = Regex(episodeRegex, RegexOption.IGNORE_CASE)
|
||||
return text.replace(regexPattern, "").ifEmpty {
|
||||
text
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue