diff options
Diffstat (limited to 'anim-crop-tool/main.cpp')
| -rw-r--r-- | anim-crop-tool/main.cpp | 6 |
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; } |
