diff --git a/utils/utils.go b/utils/utils.go index 97e3fdd..482db1f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -33,7 +33,7 @@ func GenerateSessionID() string { // IsChannelNameValid Verify if the channel name is valid func IsChannelNameValid(channelName string) bool { - return channelValidationRegex.Match([]byte(channelName)) + return channelValidationRegex.MatchString(channelName) } // IsPrivateChannel Verify if the channel name represents a private channel