mayi: fix regex

This commit is contained in:
Chris Sexton 2021-12-17 08:45:52 -05:00
parent 9670e0e657
commit d89569cdc6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ type MayIPlugin struct {
c *config.Config c *config.Config
} }
var regex = regexp.MustCompile(`(?i)(may|can) (?P<who>\S+) (?P<what>.+)`) var regex = regexp.MustCompile(`(?i)^(may|can) (?P<who>\S+) (?P<what>.+)`)
func New(b bot.Bot) *MayIPlugin { func New(b bot.Bot) *MayIPlugin {
m := &MayIPlugin{ m := &MayIPlugin{