|
|
@ -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 |
|
|
|