SlimeRead: Fix regex (#6246)

fix regex
This commit is contained in:
bapeey 2024-11-26 18:49:21 -05:00 committed by Draff
parent a8aaf331b2
commit 4d8111b5a0
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'SlimeRead'
extClass = '.SlimeRead'
extVersionCode = 14
extVersionCode = 15
isNsfw = true
}

View File

@ -264,7 +264,7 @@ class SlimeRead : HttpSource() {
companion object {
const val PREFIX_SEARCH = "id:"
val FUNCTION_REGEX = """function\s*\(\)\s*\{(?:(?!function)[\s\S])*?slimeread\.com:8443[^\}]*\}""".toRegex(RegexOption.DOT_MATCHES_ALL)
val FUNCTION_REGEX = """\{[^{]*slimeread\.com:8443[^}]*\}""".toRegex(RegexOption.DOT_MATCHES_ALL)
val BASEURL_VAL_REGEX = """baseURL\s*:\s*(\w+)""".toRegex()
}
}