Skip to content

Commit

Permalink
fix(storage): more strongly match regex (#9706)
Browse files Browse the repository at this point in the history
Fixes: #9705
  • Loading branch information
codyoss committed Apr 4, 2024
1 parent 9221c7f commit 3cfc8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func toProtoNotification(n *Notification) *storagepb.NotificationConfig {
}
}

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

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

0 comments on commit 3cfc8eb

Please sign in to comment.