summaryrefslogtreecommitdiffhomepage
path: root/anim-crop-tool
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-27 21:39:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-27 21:39:41 +0100
commitefecf0ab20304b5d76b3072a66b36b50d8522082 (patch)
tree5afa6fb96ee863864c52c1a52ede96649c71278a /anim-crop-tool
parentbeb6685f605b89ce4b2dd99f87b9319e4f7f4d94 (diff)
scenery wip
Diffstat (limited to 'anim-crop-tool')
-rw-r--r--anim-crop-tool/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp
index 5b6fa31e..fdb58e43 100644
--- a/anim-crop-tool/main.cpp
+++ b/anim-crop-tool/main.cpp
@@ -234,12 +234,10 @@ static std::tuple<options, Arguments, bool> parse_cmdline(int argc, const char*
{
if (str.isEmpty())
return false;
- if (str[0] == '.' || str[0] == '\\' || str[0] == '/')
+ if (str.findAny("\\<>&;:'\" ") || str.find("/."))
return false;
- if (str.find('"') || str.find('\''))
+ if (str[0] == '.' || str[0] == '/')
return false;
- if (str.find("/.") || str.find("\\."))
- return false; // NOLINT(readability-simplify-boolean-expr)
return true;
}