mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🎨 simplified to islower
This commit is contained in:
parent
a2e0149606
commit
70d0374dd7
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ bool ValidUsername(const std::string &name) noexcept
|
||||||
}
|
}
|
||||||
for (char c : name)
|
for (char c : name)
|
||||||
{
|
{
|
||||||
if (!((c >= 97 && c <= 122) || std::isdigit(c) || c == '_'))
|
if (!(std::islower(c) || std::isdigit(c) || c == '_'))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue