Added resizeactive

This commit is contained in:
vaxerski
2022-06-06 19:32:14 +02:00
parent d73e05cc68
commit 663fba76ae
6 changed files with 122 additions and 75 deletions

View File

@@ -135,7 +135,7 @@ float getPlusMinusKeywordResult(std::string source, float relative) {
}
bool isNumber(const std::string& str) {
return std::ranges::all_of(str.begin(), str.end(), [](char c) { return isdigit(c) != 0; });
return std::ranges::all_of(str.begin(), str.end(), [](char c) { return isdigit(c) != 0 || c == '-'; });
}
bool isDirection(const std::string& arg) {