fix(lib/lycoris&lulu): small change v2
This commit is contained in:
parent
de4383ff6f
commit
cfdcc6480a
1 changed files with 15 additions and 14 deletions
|
@ -104,7 +104,8 @@ class LuluExtractor(private val client: OkHttpClient) {
|
||||||
|
|
||||||
object JavaScriptUnpacker {
|
object JavaScriptUnpacker {
|
||||||
private val UNPACK_REGEX by lazy {
|
private val UNPACK_REGEX by lazy {
|
||||||
Regex("""\}\('(.*)', *(\d+), *(\d+), *'(.*?)'\.split\('\|'\)""")
|
Regex("""\}\('(.*)', *(\d+), *(\d+), *'(.*?)'\.split\('\|'\)""",
|
||||||
|
RegexOption.DOT_MATCHES_ALL)
|
||||||
}
|
}
|
||||||
fun unpack(encodedJs: String): String? {
|
fun unpack(encodedJs: String): String? {
|
||||||
val match = UNPACK_REGEX.find(encodedJs) ?: return null
|
val match = UNPACK_REGEX.find(encodedJs) ?: return null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue