Skip to content

Commit

Permalink
Added the possibilty to use /" inside '[]' #2010
Browse files Browse the repository at this point in the history
Signed-off-by: João Reigota <[email protected]>
  • Loading branch information
joaoReigota1 committed May 24, 2021
1 parent 5baddf6 commit 0a0263d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detector/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var (
nameRegex = regexp.MustCompile(`^([A-Za-z0-9-_]+)\[([A-Za-z0-9-_{}]+)]$`)
nameRegex = regexp.MustCompile(`^(["A-Za-z0-9-_]+)\[(["A-Za-z0-9-_{}]+)]$`)
nameRegexDocker = regexp.MustCompile(`{{(.*?)}}`)
)

Expand Down

0 comments on commit 0a0263d

Please sign in to comment.