Skip to content

Commit

Permalink
Merge pull request #33 from loft-sh/fix/tags_regex
Browse files Browse the repository at this point in the history
fix(create): proper support multi char tags
  • Loading branch information
pascalbreuninger authored May 13, 2024
2 parents b0e58b5 + d0d117c commit ce50464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func GetInstanceTags(providerAws *AwsProvider) []types.TagSpecification {
},
}

reg := regexp.MustCompile(`Name=(\w+),Value=(\w+)`)
reg := regexp.MustCompile(`Name=([A-Za-z0-9!"#$%&'()*+\-./:;<>?@[\\\]^_{|}~]+),Value=([A-Za-z0-9!"#$%&'()*+\-./:;<>?@[\\\]^_{|}~]+)`)

tagList := reg.FindAllString(providerAws.Config.InstanceTags, -1)
if tagList == nil {
Expand Down

0 comments on commit ce50464

Please sign in to comment.