From d89569cdc68efa2ab22741ee11264594afb22491 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Fri, 17 Dec 2021 08:45:52 -0500 Subject: [PATCH] mayi: fix regex --- plugins/mayi/cani.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mayi/cani.go b/plugins/mayi/cani.go index 53da384..3c3f225 100644 --- a/plugins/mayi/cani.go +++ b/plugins/mayi/cani.go @@ -13,7 +13,7 @@ type MayIPlugin struct { c *config.Config } -var regex = regexp.MustCompile(`(?i)(may|can) (?P\S+) (?P.+)`) +var regex = regexp.MustCompile(`(?i)^(may|can) (?P\S+) (?P.+)`) func New(b bot.Bot) *MayIPlugin { m := &MayIPlugin{