mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-14 22:06:43 +02:00
Tag 'none' is not allowed
This commit is contained in:
parent
2d3a842728
commit
252d080403
@ -710,7 +710,8 @@ int tag_is_valid(char *tag)
|
||||
&& strspn(tag, "abcdefghijklmnopqrstuvwxyz-0123456789") == len
|
||||
&& strchr("abcdefghijklmnopqrstuvwxyz", tag[0]) != NULL
|
||||
&& tag[len - 1] != '-'
|
||||
&& strstr(tag, "--") == NULL;
|
||||
&& strstr(tag, "--") == NULL
|
||||
&& strcmp(tag, "none") != 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user