Skip to content

Commit 915186b

Browse files
Fix IsSelfLink hostname validation (GoogleCloudPlatform#17018)
1 parent f4f40fc commit 915186b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mmv1/third_party/terraform/tpgdclresource/canonicalize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ func IsPartialSelfLink(s string) bool {
832832

833833
// IsSelfLink returns true if this string represents a full self link.
834834
func IsSelfLink(s string) bool {
835-
r := regexp.MustCompile(`(https:\/\/)?(www\.)?([a-z]*)?googleapis.com\/`)
835+
r := regexp.MustCompile(`(https:\/\/)?(www\.)?([a-z]*)?googleapis\.com\/`)
836836
return r.MatchString(s)
837837
}
838838

0 commit comments

Comments
 (0)