#3622: Revert "#3256: Allow - and . in online mode as some accounts still have these…"

This reverts commit f4f94d3b56.
This commit is contained in:
Outfluencer 2024-03-11 04:24:02 +01:00 committed by GitHub
parent 22536c11bd
commit ffa011c7b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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