alphanumeric as key start

This commit is contained in:
Arthur Passos 2023-01-10 20:15:36 -03:00
parent 65188a565f
commit 296a19129b

View File

@ -13,7 +13,7 @@ NextState KeyStateHandler::wait(const std::string & file, size_t pos) const
while (pos < file.size())
{
const auto current_character = file[pos];
if (isalpha(current_character))
if (isalnum(current_character))
{
return {pos, State::READING_KEY};
}