(expression string)
| 342 | } |
| 343 | |
| 344 | func sanitizeMatchExpression(expression string) string { |
| 345 | exp := strings.TrimPrefix(expression, "^") |
| 346 | exp = strings.TrimSuffix(exp, "$") |
| 347 | exp = fmt.Sprintf("^%s$", exp) |
| 348 | return exp |
| 349 | } |
| 350 | |
| 351 | func resolveVariableValue(ctx context.Context, name string, resolver variable.Resolver) (string, error) { |
| 352 | val, err := resolver.FillVariables(ctx, "${"+name+"}", true) |
no outgoing calls
no test coverage detected