Fix parsing non argument commands

This commit is contained in:
Hazem Krimi
2024-04-18 20:10:29 +01:00
parent b26afe682b
commit 934d2c8f08
3 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -73,9 +73,9 @@ public:
matchedVector.push_back(matched[2]);
matchedVector.push_back(matched[3]);
}
else
else if (regex_search(text, matched, regex("^(.*)")))
{
matchedVector.push_back(text);
matchedVector.push_back(matched[1]);
}
commands.push_back(matchedVector);
}