Skip to content

Commit

Permalink
Update src/base/path.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
  • Loading branch information
DoubleSpicy and glassez authored Jan 30, 2025
1 parent dccf4fa commit cf38458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf38458

Please sign in to comment.