aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logic/cmd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/cmd.go b/logic/cmd.go
index 89afc5c..c3133af 100644
--- a/logic/cmd.go
+++ b/logic/cmd.go
@@ -29,7 +29,7 @@ var cmdTable = map[string]int{
// we ignore arguments which are to much
func ParseCmd(s string) (Cmd, error) {
- s = strings.Trim(s, " \t")
+ s = strings.Trim(s, " \t\r\n")
split := strings.Split(s, " ")
if len(split) == 0 {
return Cmd{}, errors.New("Empty command")