Browse Source

fixed tokenizer

Denys 5 years ago
parent
commit
b63f41a886
1 changed files with 3 additions and 2 deletions
  1. 3 2
      cli/src/ioman.cpp

+ 3 - 2
cli/src/ioman.cpp

@@ -278,7 +278,7 @@ void IoMan::inputMain() {
         command = cmd;
       } else {
         command = cmd.substr(0, index);
-        //~ index++;
+        index++;
 
         bool end_tokenizing = false;
         while (!end_tokenizing) {
@@ -297,8 +297,9 @@ void IoMan::inputMain() {
 
           if (cmd[0] == '\"') {
             // quoted string
+            cmd = cmd.substr(1);
             index = cmd.find("\"");
-            args.push_back(cmd.substr(1, index - 1));
+            args.push_back(cmd.substr(0, index));
             index++;
 
             /*