Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/consts/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ export const USERNAME = {
MIN_LENGTH: 3,
MAX_LENGTH: 30,

// 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!
// Note that username must also pass isForbiddenUser() test to be allowed!
REGEX: /^[a-zA-Z0-9_.-]{3,30}$/,
REGEX: /^[a-z0-9_.-]{3,30}$/i,
RESTRICTED_REGEX: /^(?!.*apify)[a-z0-9_.-]{3,30}$/i,
};

export const EMAIL = {
Expand Down