Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
[skip ci]Update HtmlFormatter.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwite authored Jul 11, 2023
1 parent b636201 commit ffbd744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/io/legado/app/utils/HtmlFormatter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ object HtmlFormatter {
private val notImgHtmlRegex = "</?(?!img)[a-zA-Z]+(?=[ >])[^<>]*>".toRegex()
private val otherHtmlRegex = "</?[a-zA-Z]+(?=[ >])[^<>]*>".toRegex()
private val formatImagePattern = Pattern.compile(
"<img[^>]* src *= *\"([^\"{>]*\\{(?:[^{}]|\\{[^}>]+\\})+\\})\"[^>]*>|<img[^>]* data-[^=>]*= *\"([^\">]*)\"[^>]*>|<img[^>]* src *= *\"([^\">]*)\"[^>]*>",
"<img[^>]*\\ssrc\\s*=\\s*\"([^\"{>]*\\{(?:[^{}]|\\{[^}>]+\\})+\\})\"[^>]*>|<img[^>]*\\sdata-[^=>]*=\\s*\"([^\">]*)\"[^>]*>|<img[^>]*\\ssrc\\s*=\\s*\"([^\">]*)\"[^>]*>",
Pattern.CASE_INSENSITIVE
)

Expand Down

0 comments on commit ffbd744

Please sign in to comment.