From dbec4fc15e894cae0d02f8d04d665d69d273d5cf Mon Sep 17 00:00:00 2001 From: len Date: Thu, 9 Jun 2016 11:32:24 +0200 Subject: [PATCH] Cloudflare fix. Closes #344 --- .../eu/kanade/tachiyomi/data/network/CloudflareInterceptor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/network/CloudflareInterceptor.kt b/app/src/main/java/eu/kanade/tachiyomi/data/network/CloudflareInterceptor.kt index 23b911172..41b8a5aaf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/network/CloudflareInterceptor.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/network/CloudflareInterceptor.kt @@ -55,7 +55,7 @@ class CloudflareInterceptor(private val cookies: PersistentCookieStore) : Interc val js = operation //language=RegExp - .replace(Regex("""a\.value =(.+?) \+ .+?;"""), "$1") + .replace(Regex("""a\.value =(.+?) \+.*"""), "$1") //language=RegExp .replace(Regex("""\s{3,}[a-z](?: = |\.).+"""), "") .replace("\n", "")