|
|
@ -105,13 +105,11 @@ class AnalyzeUrl( |
|
|
|
when { |
|
|
|
when { |
|
|
|
ruleStr.startsWith("<js>") -> { |
|
|
|
ruleStr.startsWith("<js>") -> { |
|
|
|
ruleStr = ruleStr.substring(4, ruleStr.lastIndexOf("<")) |
|
|
|
ruleStr = ruleStr.substring(4, ruleStr.lastIndexOf("<")) |
|
|
|
ruleUrl = |
|
|
|
ruleUrl = evalJS(ruleStr, ruleUrl) as String |
|
|
|
evalJS(ruleStr, ruleUrl) as String |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
ruleStr.startsWith("@js", true) -> { |
|
|
|
ruleStr.startsWith("@js", true) -> { |
|
|
|
ruleStr = ruleStr.substring(4) |
|
|
|
ruleStr = ruleStr.substring(4) |
|
|
|
ruleUrl = |
|
|
|
ruleUrl = evalJS(ruleStr, ruleUrl) as String |
|
|
|
evalJS(ruleStr, ruleUrl) as String |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else -> ruleUrl = ruleStr.replace("@result", ruleUrl) |
|
|
|
else -> ruleUrl = ruleStr.replace("@result", ruleUrl) |
|
|
|
} |
|
|
|
} |
|
|
|