pull/1145/head
gedoor 3 years ago
parent b7e89f522f
commit 6cdb889c6e
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -71,7 +71,7 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions {
fun setRedirectUrl(url: String): URL? { fun setRedirectUrl(url: String): URL? {
kotlin.runCatching { kotlin.runCatching {
val urlMatcher = AnalyzeUrl.paramPattern.matcher(baseUrl) val urlMatcher = AnalyzeUrl.paramPattern.matcher(url)
redirectUrl = URL(if (urlMatcher.find()) url.substring(0, urlMatcher.start()) else url) redirectUrl = URL(if (urlMatcher.find()) url.substring(0, urlMatcher.start()) else url)
} }
return redirectUrl return redirectUrl

Loading…
Cancel
Save