mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
cbad59f6fc
commit
8be7b772e5
@ -8,7 +8,7 @@ import java.util.regex.Pattern
|
||||
object HtmlFormatter {
|
||||
private val nbspRegex = "( )+".toRegex()
|
||||
private val espRegex = "( | )".toRegex()
|
||||
private val noPrintRegex = "( |‌|‍)".toRegex()
|
||||
private val noPrintRegex = "( |‌|‍|\u2009|\u200C|\u200D)".toRegex()
|
||||
private val wrapHtmlRegex = "</?(?:div|p|br|hr|h\\d|article|dd|dl)[^>]*>".toRegex()
|
||||
private val commentRegex = "<!--[^>]*-->".toRegex() //注释
|
||||
private val notImgHtmlRegex = "</?(?!img)[a-zA-Z]+(?=[ >])[^<>]*>".toRegex()
|
||||
|
Loading…
Reference in New Issue
Block a user