HasEval determine whether matcher contains function eval.
(s string)
| 242 | |
| 243 | // HasEval determine whether matcher contains function eval. |
| 244 | func HasEval(s string) bool { |
| 245 | return evalReg.MatchString(s) |
| 246 | } |
| 247 | |
| 248 | // ReplaceEval replace function eval with the value of its parameters. |
| 249 | func ReplaceEval(s string, rule string) string { |
no outgoing calls
searching dependent graphs…