Skip to content

Commit

Permalink
Merge pull request #36 from svmehta/master
Browse files Browse the repository at this point in the history
increased allowable channel and topic name length to 64 characters
  • Loading branch information
mreiferson committed May 28, 2014
2 parents 432aa15 + 22d3e5b commit 2cdc7dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ var validChannelNameRegex = regexp.MustCompile(`^[\.a-zA-Z0-9_-]+(#ephemeral)?$`

// IsValidTopicName checks a topic name for correctness
func IsValidTopicName(name string) bool {
if len(name) > 32 || len(name) < 1 {
if len(name) > 64 || len(name) < 1 {
return false
}
return validTopicNameRegex.MatchString(name)
}

// IsValidChannelName checks a channel name for correctness
func IsValidChannelName(name string) bool {
if len(name) > 32 || len(name) < 1 {
if len(name) > 64 || len(name) < 1 {
return false
}
return validChannelNameRegex.MatchString(name)
Expand Down

0 comments on commit 2cdc7dc

Please sign in to comment.