summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-06 19:32:14 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-06 19:32:14 +0200
commit663fba76ae08407f196c1cc1b2c775d52b9fdfc9 (patch)
tree5d7e9235567f03cc9692af48fa62a854025b9c9d /src/helpers/MiscFunctions.cpp
parentd73e05cc681cb7227d69d67c32e735b2705743a6 (diff)
Added resizeactive
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index 2cdadbc8..6f9b465e 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -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) {