diff --git a/bot.go b/bot.go index 0832244..34e45c7 100644 --- a/bot.go +++ b/bot.go @@ -166,7 +166,7 @@ func (b *Bot) Handle(endpoint interface{}, handler interface{}) { var ( cmdRx = regexp.MustCompile(`^(/\w+)(@(\w+))?(\s|$)(.+)?`) - cbackRx = regexp.MustCompile(`^\f(\w+)(\|(.+))?$`) + cbackRx = regexp.MustCompile(`^\f([-\w]+)(\|(.+))?$`) ) // Start brings bot into motion by consuming incoming