diff --git a/app/src/main/java/io/legado/app/help/RuleComplete.kt b/app/src/main/java/io/legado/app/help/RuleComplete.kt index ae0d73a54..8cd10dabc 100644 --- a/app/src/main/java/io/legado/app/help/RuleComplete.kt +++ b/app/src/main/java/io/legado/app/help/RuleComplete.kt @@ -4,13 +4,13 @@ package io.legado.app.help object RuleComplete { // 需要补全 private val needComplete =Regex( - """(?!=(@|/|^)(attr|text|ownText|textNodes|href|content|html|alt|all|value|src)(\(\))?)(?\&{2}|%%|\|{2}|$)""") + """(?\&{2}|%%|\|{2}|$)""") // 不能补全 存在js/json/{{xx}}的复杂情况 private val notComplete = Regex("""^:|^##|\{\{|@js:||@Json:|\$\.""") // 修正从图片获取信息 - private val fixImgInfo = Regex("""(?<=(^|tag\.|[\+/@>~| &]))img(?\[@.+\]|\.[-\w]+)?[@/]+text(\(\))?(?\&{2}|%%|\|{2}|$)""") + private val fixImgInfo = Regex("""(?<=(^|tag\.|[\+/@>~| &]))img(?\[@?.+\]|\.[-\w]+)?[@/]+text(\(\))?(?\&{2}|%%|\|{2}|$)""") private val isXpath= Regex("^//|^@Xpath:")