mirror of https://github.com/velour/catbase.git
mayi: fix regex
This commit is contained in:
parent
9670e0e657
commit
d89569cdc6
|
@ -13,7 +13,7 @@ type MayIPlugin struct {
|
|||
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 {
|
||||
m := &MayIPlugin{
|
||||
|
|
Loading…
Reference in New Issue