(ctx expr.EvalContext, vals []value.Value)
| 266 | } |
| 267 | |
| 268 | func replaceEval(ctx expr.EvalContext, vals []value.Value) (value.Value, bool) { |
| 269 | val1 := vals[0].ToString() |
| 270 | arg := vals[1] |
| 271 | replaceWith := "" |
| 272 | if len(vals) == 3 { |
| 273 | replaceWith = vals[2].ToString() |
| 274 | } |
| 275 | val1 = strings.Replace(val1, arg.ToString(), replaceWith, -1) |
| 276 | return value.NewStringValue(val1), true |
| 277 | } |
| 278 | |
| 279 | // Join items together (string concatenation) |
| 280 | // |
nothing calls this directly
no test coverage detected