mirror of
https://github.com/Adaptix-Framework/AdaptixC2
synced 2026-06-08 10:20:39 +00:00
7 lines
230 B
C++
7 lines
230 B
C++
#include <Utils/Valid.h>
|
|
|
|
bool IsValidURI(const QString &uri) {
|
|
QRegularExpression regex(R"(^\/(?!\/)([a-zA-Z0-9\-_]+\/?)*[a-zA-Z0-9\-_]$)");
|
|
QRegularExpressionMatch match = regex.match(uri);
|
|
return match.hasMatch();
|
|
} |