fix WP MangaStream regex (#5007)

previous regex match other thing in some site
This commit is contained in:
Riztard Lanthorn 2020-12-04 01:39:36 +07:00 committed by GitHub
parent cb1d3da58a
commit fc9a38e02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'WP MangaStream (multiple sources)'
pkgNameSuffix = 'all.wpmangastream'
extClass = '.WPMangaStreamFactory'
extVersionCode = 36
extVersionCode = 37
libVersion = '1.2'
}

View File

@ -266,7 +266,7 @@ abstract class WPMangaStream(
if (pages.isNotEmpty()) { return pages }
val docString = document.toString()
val imageListRegex = Regex("images.*?:.*?(\\[.*?\\])")
val imageListRegex = Regex("\\\"images.*?:.*?(\\[.*?\\])")
val imageList = JSONArray(imageListRegex.find(docString)!!.destructured.toList()[0])