fix vanity urls with - not being recognized

This commit is contained in:
ouwou
2020-12-10 02:37:12 -05:00
parent 7969576070
commit d573054546

View File

@@ -77,7 +77,7 @@ void JoinGuildDialog::CheckCode() {
}
bool JoinGuildDialog::IsCode(std::string str) {
return str.length() >= 2 && std::all_of(str.begin(), str.end(), [](char c) -> bool { return std::isalnum(c); });
return str.length() >= 2 && std::all_of(str.begin(), str.end(), [](char c) -> bool { return std::isalnum(c) || c == '-'; });
}
std::string JoinGuildDialog::GetCode() {