We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde84f7 commit 91af634Copy full SHA for 91af634
packages/consts/src/consts.ts
@@ -115,9 +115,10 @@ export const USERNAME = {
115
MIN_LENGTH: 3,
116
MAX_LENGTH: 30,
117
118
- // Regex matching a potentially allowed username. The numbers must match MIN and MAX!
+ // Regexes matching a potentially allowed username. The numbers must match MIN and MAX!
119
// Note that username must also pass isForbiddenUser() test to be allowed!
120
- REGEX: /^[a-zA-Z0-9_.-]{3,30}$/,
+ REGEX: /^[a-z0-9_.-]{3,30}$/i,
121
+ RESTRICTED_REGEX: /^(?!.*apify)[a-z0-9_.-]{3,30}$/i,
122
};
123
124
export const EMAIL = {
0 commit comments