Skip to content

Commit 3cfc8eb

Browse files
authored
fix(storage): more strongly match regex (#9706)
Fixes: #9705
1 parent 9221c7f commit 3cfc8eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/notifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func toProtoNotification(n *Notification) *storagepb.NotificationConfig {
116116
}
117117
}
118118

119-
var topicRE = regexp.MustCompile("^//pubsub.googleapis.com/projects/([^/]+)/topics/([^/]+)")
119+
var topicRE = regexp.MustCompile(`^//pubsub\.googleapis\.com/projects/([^/]+)/topics/([^/]+)`)
120120

121121
// parseNotificationTopic extracts the project and topic IDs from from the full
122122
// resource name returned by the service. If the name is malformed, it returns

0 commit comments

Comments
 (0)