Fix invalid search page regex causing class init crash (#991)
This commit is contained in:
@@ -312,7 +312,7 @@ internal fun BookSource.supportsSearchPage(): Boolean {
|
||||
}
|
||||
|
||||
private val searchPageScriptPattern = Regex(
|
||||
pattern = """\{\{[\s\S]*?}}|<js>[\s\S]*?</js>|@js:[\s\S]*""",
|
||||
pattern = """\{\{[\s\S]*?\}\}|<js>[\s\S]*?</js>|@js:[\s\S]*""",
|
||||
option = RegexOption.IGNORE_CASE,
|
||||
)
|
||||
private val searchPageTokenPattern = Regex("""(?<![A-Za-z0-9_])page(?![A-Za-z0-9_])""")
|
||||
|
||||
Reference in New Issue
Block a user