Add - to allowed characters in mod storage (#218)

can't have anything in ex-coop
This commit is contained in:
Agent X 2022-10-25 16:28:19 -04:00 committed by GitHub
parent 80cda3546e
commit dd075ce2ee
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ void strdelete(char string[], char substr[]) {
bool char_valid(char* buffer) {
if (buffer[0] == '\0') { return false; }
while (*buffer != '\0') {
if ((*buffer >= 'a' && *buffer <= 'z') || (*buffer >= 'A' && *buffer <= 'Z') || (*buffer >= '0' && *buffer <= '9') || *buffer == '_' || *buffer == '.') {
if ((*buffer >= 'a' && *buffer <= 'z') || (*buffer >= 'A' && *buffer <= 'Z') || (*buffer >= '0' && *buffer <= '9') || *buffer == '_' || *buffer == '.' || *buffer == '-') {
buffer++;
continue;
}