🐛 ValidUsername should allow capitilization

This commit is contained in:
EntireTwix 2023-01-09 17:01:14 -08:00
parent 5e996b2705
commit c659c9b7bd
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ inline bool ValidUsername(const std::string &name) noexcept
}
for (char c : name)
{
if (!((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_'))
if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'))
{
return false;
}

View file

@ -8,7 +8,7 @@ inline bool ValidUsername(const std::string &name) noexcept
}
for (char c : name)
{
if (!((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_'))
if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'))
{
return false;
}