Skip to content

Commit

Permalink
Make leading/trailing spaces optional in templating (#792)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Gershman <[email protected]>
  • Loading branch information
agershman authored Feb 3, 2025
1 parent 061b302 commit eae2ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/granted/awsmerge/merge_from_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func interpolateVariables(value string, profileName string) (string, error) {
}

func containsTemplate(text string) bool {
re := regexp.MustCompile(`{{\s+(.\w+){1,2}\s+}}`)
re := regexp.MustCompile(`{{\s*(.\w+){1,2}\s*}}`)

return re.MatchString(text)
}
Expand Down

0 comments on commit eae2ad6

Please sign in to comment.