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

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

Loading…
Cancel
Save