From 94c00c9d31bc2282f6e4dad570196af2607386a0 Mon Sep 17 00:00:00 2001 From: Jure Repe Date: Sat, 24 Oct 2020 21:39:39 +0200 Subject: [PATCH] Slash-commands now look for exact match --- server/autolinkplugin/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/autolinkplugin/command.go b/server/autolinkplugin/command.go index e8fb65c1..44b2827b 100644 --- a/server/autolinkplugin/command.go +++ b/server/autolinkplugin/command.go @@ -336,7 +336,7 @@ func searchLinkRef(p *Plugin, requireUnique bool, args ...string) ([]autolink.Au found := []int{} for i, l := range links { - if strings.Contains(l.Name, args[0]) { + if strings.Compare(l.Name, args[0]) == 0 { found = append(found, i) } }