feat(ex02): fixed charset check
This commit is contained in:
parent
bacfb97ae0
commit
13c26268c8
1 changed files with 2 additions and 2 deletions
|
|
@ -277,8 +277,8 @@ bool parse_command(char* str, command* cmd) {
|
|||
return true;
|
||||
}
|
||||
for (uint8_t k = 0; c[k]; k++) {
|
||||
if (!(k >= 'a' && k <= 'z') && !(k >= 'A' && k <= 'Z') && !(k >= '0' && k <= '9') &&
|
||||
k != '_' && k != '-') {
|
||||
if (ft_stridx("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",
|
||||
c[k]) == 255) {
|
||||
uart_sendstring(
|
||||
"Invalid format: SET_TAG parameter must be alphanumeric (- and _ are allowed "
|
||||
"too)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue