diff --git a/src/bank.cpp b/src/bank.cpp index 9016d23..67c9986 100644 --- a/src/bank.cpp +++ b/src/bank.cpp @@ -10,7 +10,7 @@ bool ValidUsername(const std::string &name) noexcept } for (char c : name) { - if (!((c >= 97 && c <= 122) || std::isdigit(c) || c == '_')) + if (!(std::islower(c) || std::isdigit(c) || c == '_')) { return false; }