@social.dev/server-sdk 0.0.1-alpha.80 → 0.0.1-alpha.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,7 +56,7 @@ let UserService = class UserService {
|
|
|
56
56
|
if (!queryRunner) {
|
|
57
57
|
queryRunner = this.dataSource.createQueryRunner();
|
|
58
58
|
}
|
|
59
|
-
const usernameRegex = /^[a-zA-Z0-9_.]{
|
|
59
|
+
const usernameRegex = /^[a-zA-Z0-9_.]{2,15}$/;
|
|
60
60
|
if (!usernameRegex.test(username)) {
|
|
61
61
|
throw new user_exceptions_1.InvalidUsernameException('Username must be 4-15 characters long and contain only letters, numbers, underscores, and periods');
|
|
62
62
|
}
|