From dacb37957161c57df6200559aba9d0e39b22efcc Mon Sep 17 00:00:00 2001 From: Victor Castell Date: Tue, 27 Nov 2018 21:45:06 +0100 Subject: [PATCH] This should be TrimSuffix fixes #406 --- cmd/plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/plugins.go b/cmd/plugins.go index f7dc16165..e7846f444 100644 --- a/cmd/plugins.go +++ b/cmd/plugins.go @@ -100,7 +100,7 @@ func getPluginName(file string) (string, bool) { } // This cleans off the .exe for windows plugins - name := strings.TrimRight(parts[2], ".exe") + name := strings.TrimSuffix(parts[2], ".exe") return name, true }