pull/32/head
kunfei 5 years ago
parent 987de5d042
commit 992b538954
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -121,7 +121,7 @@ class AnalyzeUrl(
* 处理URL * 处理URL
*/ */
private fun initUrl() { private fun initUrl() {
val urlArray = ruleUrl.split(",\n*".toRegex(), 2) val urlArray = ruleUrl.split(",[^\\{]*".toRegex(), 2)
url = urlArray[0] url = urlArray[0]
host = NetworkUtils.getBaseUrl(url) host = NetworkUtils.getBaseUrl(url)
if (urlArray.size > 1) { if (urlArray.size > 1) {

Loading…
Cancel
Save