diff --git a/OsuLazerServer/Controllers/Users/UsersController.cs b/OsuLazerServer/Controllers/Users/UsersController.cs index 2c88820cdace386a072716fa5e665ffe82478a4a..add28c6250b892e847e68c2406585b507c859b44 100644 --- a/OsuLazerServer/Controllers/Users/UsersController.cs +++ b/OsuLazerServer/Controllers/Users/UsersController.cs @@ -100,7 +100,7 @@ public class UsersController : Controller Username = new[] {"Username or email already took"} }); - if (!Regex.IsMatch(body.Username, @"^[a-zA-Z0-9_-\ ]{3,15}$")) + if (!Regex.IsMatch(body.Username, @"^[a-zA-Z0-9_-]{3,15}$")) return await GenerateRegistrationError(new RegistrationRequestErrors.UserErrors { Username = new[] {"Invalid username"}