#3256: Allow - and . in online mode as some accounts still have these usernames

This commit is contained in:
nnnnt21 2022-02-23 15:06:10 -06:00 committed by GitHub
parent eae9d45c8a
commit f4f94d3b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ public final class AllowedCharacters
{ {
if ( onlineMode ) if ( onlineMode )
{ {
return ( c >= 'a' && c <= 'z' ) || ( c >= '0' && c <= '9' ) || ( c >= 'A' && c <= 'Z' ) || c == '_'; return ( c >= 'a' && c <= 'z' ) || ( c >= '0' && c <= '9' ) || ( c >= 'A' && c <= 'Z' ) || c == '_' || c == '.' || c == '-';
} else } else
{ {
// Don't allow spaces, Yaml config doesn't support them // Don't allow spaces, Yaml config doesn't support them