From efecf0ab20304b5d76b3072a66b36b50d8522082 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 Nov 2022 21:39:41 +0100 Subject: scenery wip --- anim-crop-tool/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'anim-crop-tool') 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 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; } -- cgit v1.2.3