Update HtmlFormatter.kt

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

@ -60,7 +60,8 @@ object HtmlFormatter {
if (pos == 0) { if (pos == 0) {
val url = matcher.group(1)!! val url = matcher.group(1)!!
val urlMatcher = AnalyzeUrl.paramPattern.matcher(url) val urlMatcher = AnalyzeUrl.paramPattern.matcher(url)
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 NetworkUtils.getAbsoluteURL(redirectUrl,url)
}else NetworkUtils.getAbsoluteURL(redirectUrl,matcher.group(1)!!) }else NetworkUtils.getAbsoluteURL(redirectUrl,matcher.group(1)!!)
}\">") }\">")

Loading…
Cancel
Save