Fix invalid search page regex causing class init crash (#991)
This commit is contained in:
1 parent
103bdc07d1
commit
46c9496bdc
1 file changed
+1
-1
@@ -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