pull/1155/head
gedoor 3 years ago
parent 3de7ec5e3d
commit 8629f75e5d
  1. 6
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -367,6 +367,8 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions {
mMode = Mode.Regex mMode = Mode.Regex
isRegex = true isRegex = true
start = 1 start = 1
} else if (isRegex) {
mMode = Mode.Regex
} }
var tmp: String var tmp: String
val jsMatcher = JS_PATTERN.matcher(ruleStr) val jsMatcher = JS_PATTERN.matcher(ruleStr)
@ -437,10 +439,6 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions {
mode = Mode.Json mode = Mode.Json
ruleStr ruleStr
} }
isRegex -> {
mode = Mode.Regex
ruleStr
}
else -> ruleStr else -> ruleStr
} }
//分离put //分离put

Loading…
Cancel
Save