- add patreon as allowed link

This commit is contained in:
Anonymous-275 2023-09-01 21:07:27 +01:00
parent f1d960d062
commit f20635cc7e

View File

@ -68,7 +68,7 @@ void Launcher::HandleIPC(const std::string& Data) { //TODO Improve all cases si
}
bool Launcher::IsAllowedLink(const std::string& Link) {
std::regex link_pattern(R"(https:\/\/(?:\w+)?(?:\.)?(?:beammp|discord)\.com)");
std::regex link_pattern(R"(https:\/\/(?:\w+)?(?:\.)?(?:beammp\.com|discord\.gg|patreon\.com))");
std::smatch link_match;
return std::regex_search(Link,link_match, link_pattern) && link_match.position() == 0;
}