mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
- add patreon as allowed link
This commit is contained in:
parent
f1d960d062
commit
f20635cc7e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user