From d776d2280b7e5f6b42a16406b1e44048b5e905f4 Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Wed, 17 Jul 2019 13:11:19 -0700 Subject: [PATCH] Escape regex correctly --- third_party/terraform/resources/resource_google_project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/terraform/resources/resource_google_project.go b/third_party/terraform/resources/resource_google_project.go index 77f95638c5a9..ce1031d3d6fd 100644 --- a/third_party/terraform/resources/resource_google_project.go +++ b/third_party/terraform/resources/resource_google_project.go @@ -451,7 +451,7 @@ func resourceGoogleProjectDelete(d *schema.ResourceData, meta interface{}) error func resourceProjectImportState(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { pid := d.Id() // Project id must start with a letter. This prevents users from importing with project number - matched, err := regexp.MatchString("^[^\d]", pid) + matched, err := regexp.MatchString("^[^\\d]", pid) if err != nil { return nil, fmt.Errorf("Error matching project %q: %s", pid, err) }