pull/1127/head
bushixuanqi 3 years ago
parent 04aef3ae71
commit f0e5fa94c0
  1. 2
      app/src/main/java/io/legado/app/utils/HtmlFormatter.kt

@ -28,7 +28,7 @@ object HtmlFormatter {
val sb = StringBuffer()
var endPos = 0
for(pattern in listOf("<img[^>]*src *= *\"([^\"{]+(?:\\{(?:[^{}]|\\{[^{}]*\\})*\\})?)\"[^>]*>""<img[^>]*data-[^=]*= *\"([^\"])\"[^>]*>")){
for(pattern in listOf("<img[^>]*src *= *\"([^\"{]+(?:\\{(?:[^{}]|\\{[^{}]*\\})*\\})?)\"[^>]*>","<img[^>]*data-[^=]*= *\"([^\"])\"[^>]*>")){
var appendPos = 0
val matcher = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE).matcher(keepImgHtml)
while (matcher.find()) {

Loading…
Cancel
Save