variable lol
This commit is contained in:
parent
97cd3dd43b
commit
3077f39c9d
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue