We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d86a31a commit 90ad66dCopy full SHA for 90ad66d
src/iconv.cpp
@@ -969,9 +969,11 @@ int test_conforming_alpha_string(char *in_string) {
969
}
970
971
while (valid_bytes < string_len) {
972
- if ((*test_str >= 65 && *test_str <= 90) ||
973
- (*test_str >= 97 && *test_str <= 122) || *test_str == 95 ||
974
- (*test_str >= 48 && *test_str <= 57)) {
+ if ((*test_str >= 65 && *test_str <= 90) // A-Z
+ || (*test_str >= 97 && *test_str <= 122) // a-z
+ || (*test_str >= 48 && *test_str <= 57) // 0-9
975
+ || *test_str == 32 || *test_str == 95) // space or underscore
976
+ {
977
valid_bytes++;
978
} else {
979
break;
0 commit comments