Skip to content

Commit

Permalink
Merge pull request #1428 from sjatsh/del-escape-char
Browse files Browse the repository at this point in the history
remove unnecessary escape char from `validTopicChannelNameRegex`
  • Loading branch information
ploxiln authored Oct 24, 2022
2 parents 393f7b9 + a77821d commit 9bd7d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/protocol/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"regexp"
)

var validTopicChannelNameRegex = regexp.MustCompile(`^[\.a-zA-Z0-9_-]+(#ephemeral)?$`)
var validTopicChannelNameRegex = regexp.MustCompile(`^[.a-zA-Z0-9_-]+(#ephemeral)?$`)

// IsValidTopicName checks a topic name for correctness
func IsValidTopicName(name string) bool {
Expand Down

0 comments on commit 9bd7d8b

Please sign in to comment.