PlatformSchedulerService in manifest

This commit is contained in:
Finnley Somdahl 2024-01-12 20:10:55 -06:00
parent 3077f39c9d
commit f12a4de04b
3 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import java.util.regex.Pattern
class MangaNameAdapter {
companion object {
val chapterRegex = "(chapter|chap|ch|c)[\\s:.\\-]*([\\d]+\\.?[\\d]*)[\\s:.\\-]*"
const val chapterRegex = "(chapter|chap|ch|c)[\\s:.\\-]*([\\d]+\\.?[\\d]*)[\\s:.\\-]*"
fun findChapterNumber(text: String): Float? {
val pattern: Pattern = Pattern.compile(chapterRegex, Pattern.CASE_INSENSITIVE)
val matcher: Matcher = pattern.matcher(text)