diff --git a/lib/common.go b/lib/common.go index be22fcd..5ec3b95 100644 --- a/lib/common.go +++ b/lib/common.go @@ -59,7 +59,7 @@ func HasCommand(s, prefix, cmd string) bool { return false } - if s[1:] == cmd { + if strings.HasPrefix(s[1:], cmd) { return true }