diff --git a/src/base/path.cpp b/src/base/path.cpp index 3b6d6ecb893..533f4c267f6 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)