Skip to content

Commit

Permalink
Fix regex that changed due to backtick vs double quote (#2777)
Browse files Browse the repository at this point in the history
Merged PR #2777.
  • Loading branch information
slevenick authored and modular-magician committed Dec 4, 2019
1 parent bd78c96 commit 3c20d16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
2 changes: 1 addition & 1 deletion build/terraform-mapper
2 changes: 1 addition & 1 deletion third_party/terraform/utils/kms_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (s *kmsCryptoKeyId) terraformId() string {

func validateKmsCryptoKeyRotationPeriod(value interface{}, _ string) (ws []string, errors []error) {
period := value.(string)
pattern := regexp.MustCompile(`^([0-9.]*\\d)s$`)
pattern := regexp.MustCompile(`^([0-9.]*\d)s$`)
match := pattern.FindStringSubmatch(period)

if len(match) == 0 {
Expand Down

0 comments on commit 3c20d16

Please sign in to comment.