Trim spaces
This commit is contained in:
parent
fa6f06f639
commit
35c72daff4
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user