Update HtmlFormatter.kt

优化
pull/1133/head
bushixuanqi 3 years ago committed by GitHub
parent af7be0b8d3
commit fda7841ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/utils/HtmlFormatter.kt

@ -61,7 +61,7 @@ object HtmlFormatter {
val url = matcher.group(1)!! val url = matcher.group(1)!!
val urlMatcher = AnalyzeUrl.paramPattern.matcher(url) val urlMatcher = AnalyzeUrl.paramPattern.matcher(url)
if(urlMatcher.find()) NetworkUtils.getAbsoluteURL(redirectUrl,url.substring(0,urlMatcher.start())) + ',' + url.substring(urlMatcher.end()) if(urlMatcher.find()) NetworkUtils.getAbsoluteURL(redirectUrl,url.substring(0,urlMatcher.start())) + ',' + url.substring(urlMatcher.end())
else url else NetworkUtils.getAbsoluteURL(redirectUrl,url)
}else NetworkUtils.getAbsoluteURL(redirectUrl,matcher.group(1)!!) }else NetworkUtils.getAbsoluteURL(redirectUrl,matcher.group(1)!!)
}\">") }\">")

Loading…
Cancel
Save