variable lol

This commit is contained in:
Finnley Somdahl 2024-01-12 19:56:59 -06:00
parent 97cd3dd43b
commit 3077f39c9d

View file

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