Merge pull request #364 from rusq/v2

Enable handling callbacks with Unique contaning "-"
pull/425/head
demget 3 years ago committed by Demian
parent 6de4d3e537
commit f29096837c

@ -194,7 +194,7 @@ func (b *Bot) Handle(endpoint interface{}, h HandlerFunc, m ...MiddlewareFunc) {
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

Loading…
Cancel
Save