diff --git a/app/src/main/java/ani/dantotsu/media/manga/MangaNameAdapter.kt b/app/src/main/java/ani/dantotsu/media/manga/MangaNameAdapter.kt index af608a9edc9..30c0e7771a1 100644 --- a/app/src/main/java/ani/dantotsu/media/manga/MangaNameAdapter.kt +++ b/app/src/main/java/ani/dantotsu/media/manga/MangaNameAdapter.kt @@ -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()) {