Skip to content
Snippets Groups Projects
Commit cb3a9e274215 authored by Steeven Herlant's avatar Steeven Herlant
Browse files

fix: multiples vars hydrate

parent 0ead0f9469e1
No related branches found
No related tags found
No related merge requests found
Pipeline #68326 failed
......@@ -44,6 +44,13 @@
if err != nil {
return err
}
// Search for over occurences of beaver variables
regex := regexp.MustCompile(`<\[([^<\[\]>]*)\]>`)
for regex.MatchString(s) {
return hydrateString(s, output, variables)
}
if _, err := output.Write([]byte(s)); err != nil {
return fmt.Errorf("failed to template: %w", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment