Skip to content

Commit

Permalink
fix(channel): open up channel length (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r committed Apr 22, 2020
1 parent 51b2b52 commit b199cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote/slack/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func findKey(m map[string]string, value string) (key string, ok bool) {

// getMessageType - gets the type of message based on where it came from
func getMessageType(channel string) (models.MessageType, error) {
re := regexp.MustCompile(`^(C|D|G)[A-Z0-9]{8}$`) // match known 9-char channel ID types
re := regexp.MustCompile(`^(C|D|G)[A-Z0-9]{4,}$`) // match known channel ID types
match := re.FindStringSubmatch(channel)
if len(match) > 0 {
switch match[1] { // [1] grabs the first letter, [0] will grab the entire channel ID
Expand Down

0 comments on commit b199cb6

Please sign in to comment.