From 992b5389542053667a0f64acc2ced496e2003d47 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 30 Jun 2019 22:38:16 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index 75a7582f1..c16c7f37b 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -121,7 +121,7 @@ class AnalyzeUrl( * 处理URL */ private fun initUrl() { - val urlArray = ruleUrl.split(",\n*".toRegex(), 2) + val urlArray = ruleUrl.split(",[^\\{]*".toRegex(), 2) url = urlArray[0] host = NetworkUtils.getBaseUrl(url) if (urlArray.size > 1) {