diff --git a/lib/common.go b/lib/common.go index 5ec3b95..b6b82ae 100644 --- a/lib/common.go +++ b/lib/common.go @@ -51,6 +51,9 @@ func BuildURI(rawuri, rawpath string) string { } func HasCommand(s, prefix, cmd string) bool { + s = strings.TrimSpace(s) + + // a command cannot be less than two characters e.g. !x if len(s) < 2 { return false }