From 3bedaf2ec066c7bbfe15cad009692b83d1d32a26 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Tue, 25 Oct 2022 12:09:32 -0400 Subject: [PATCH] fact: trim space --- plugins/fact/factoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fact/factoid.go b/plugins/fact/factoid.go index ee60a45..a5cbbe5 100644 --- a/plugins/fact/factoid.go +++ b/plugins/fact/factoid.go @@ -153,7 +153,7 @@ func (p *FactoidPlugin) learnFact(message msg.Message, fact, verb, tidbit string // findTrigger checks to see if a given string is a trigger or not func (p *FactoidPlugin) findTrigger(fact string) (bool, *Factoid) { - fact = strings.ToLower(fact) // TODO: make sure this needs to be lowered here + fact = strings.TrimSpace(strings.ToLower(fact)) f, err := GetSingleFact(p.db, fact) if err != nil {