mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
Utilities: Replace ctype.h usage with AK/CharacterTypes.h
This commit is contained in:
parent
ee4e9b807a
commit
0f95ff64ed
14 changed files with 51 additions and 41 deletions
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/Base64.h>
|
||||
#include <AK/CharacterTypes.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Random.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
|
@ -59,7 +60,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
|
||||
// Disallow names starting with _ and -
|
||||
if (username[0] == '_' || username[0] == '-' || !isalpha(username[0])) {
|
||||
if (username[0] == '_' || username[0] == '-' || !is_ascii_alpha(username[0])) {
|
||||
warnln("invalid username, {}", username);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue