generated from Sithas/conan_template
Рефакторинг регистрации
This commit is contained in:
@@ -115,7 +115,7 @@ private:
|
||||
{
|
||||
if (login.size() < 3 || login.size() > 50) return false;
|
||||
|
||||
std::regex pattern("[a–z0–9._-]");
|
||||
std::regex pattern(std::string("^[A-Za-z0-9_]+$"));
|
||||
|
||||
return std::regex_match(login, pattern);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user