Update persona name pattern

Add '-' character to allowed characters in persona name.
This commit is contained in:
Kawe Mazidjatari 2023-04-05 15:32:00 +02:00 committed by GitHub
parent 697d11cccb
commit dda78ed36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ bool IsValidPersonaName(const char* pszName)
}
// Check if the name contains any special characters.
size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_");
size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
return pszName[pos] == '\0';
}
#endif // !CLIENT_DLL