We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba773f1 commit 679fcfeCopy full SHA for 679fcfe
1 file changed
src/common/common.c
@@ -41,7 +41,8 @@ int ocre_is_valid_name(const char *id)
41
/* Can only contain alphanumeric characters, dots, underscores, and hyphens */
42
43
for (size_t i = 0; i < strlen(id); i++) {
44
- if ((isalnum((int)id[i]) && islower((int)id[i])) || id[i] == '.' || id[i] == '_' || id[i] == '-') {
+ if ((isalpha((int)id[i]) && islower((int)id[i])) || isdigit((int)id[i]) || id[i] == '.' ||
45
+ id[i] == '_' || id[i] == '-') {
46
continue;
47
}
48
0 commit comments