Merge pull request #364 from rusq/v2

Enable handling callbacks with Unique contaning "-"
pull/371/head
demget 3 years ago committed by GitHub
commit ca1b73614a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save