|
|
@ -433,9 +433,10 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
else -> rule = ruleStr |
|
|
|
else -> rule = ruleStr |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//分离put |
|
|
|
|
|
|
|
rule = splitPutRule(rule, putMap) |
|
|
|
//分离正则表达式 |
|
|
|
//分离正则表达式 |
|
|
|
val ruleStrS = |
|
|
|
val ruleStrS = rule.trim { it <= ' ' }.split("##") |
|
|
|
rule.trim { it <= ' ' }.split("##") |
|
|
|
|
|
|
|
rule = ruleStrS[0] |
|
|
|
rule = ruleStrS[0] |
|
|
|
if (ruleStrS.size > 1) { |
|
|
|
if (ruleStrS.size > 1) { |
|
|
|
replaceRegex = ruleStrS[1] |
|
|
|
replaceRegex = ruleStrS[1] |
|
|
@ -446,8 +447,6 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
if (ruleStrS.size > 3) { |
|
|
|
if (ruleStrS.size > 3) { |
|
|
|
replaceFirst = true |
|
|
|
replaceFirst = true |
|
|
|
} |
|
|
|
} |
|
|
|
//分离put |
|
|
|
|
|
|
|
rule = splitPutRule(rule, putMap) |
|
|
|
|
|
|
|
//@get,{{ }},$1, 拆分 |
|
|
|
//@get,{{ }},$1, 拆分 |
|
|
|
var start = 0 |
|
|
|
var start = 0 |
|
|
|
var tmp: String |
|
|
|
var tmp: String |
|
|
|