mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 12:43:56 +00:00
variable lol
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user