mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🔥🐎 simplified
This commit is contained in:
parent
6af072cf66
commit
bd87a14131
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ __attribute__((always_inline)) inline bool ValidUsrname(const std::string &name)
|
||||||
}
|
}
|
||||||
for (const char &c : name)
|
for (const char &c : name)
|
||||||
{
|
{
|
||||||
if (!(std::isalpha(c) || std::islower(c) || std::isdigit(c) || c == '_'))
|
if (!((c > 96 && c < 122) || std::isdigit(c) || c == '_'))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue