From cf38458b6e8adafa7e71ac366866ffce2366c649 Mon Sep 17 00:00:00 2001 From: DoubleSpicy Date: Thu, 30 Jan 2025 17:55:16 +0800 Subject: [PATCH] Update src/base/path.cpp Co-authored-by: Vladimir Golovnev --- src/base/path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/path.cpp b/src/base/path.cpp index 3b6d6ecb8934..533f4c267f6e 100644 --- a/src/base/path.cpp +++ b/src/base/path.cpp @@ -107,9 +107,10 @@ bool Path::isValid() const if (hasDriveLetter(view)) view = view.mid(3); - // \\37 is using base-8 number system if (isUNCPath()) return true; + + // \\37 is using base-8 number system const QRegularExpression regex {u"[\\0-\\37:?\"*<>|]"_s}; return !regex.match(view).hasMatch(); #elif defined(Q_OS_MACOS)