Skip to content

Commit bfa283d

Browse files
committed
fix(consts): loosen up the restrictions for email and profile name
1 parent 5624f1e commit bfa283d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/consts/src/consts.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,16 @@ export const USERNAME = {
120120
};
121121

122122
export const EMAIL = {
123-
MIN_LENGTH: 3,
124123
MAX_LENGTH: 254, // see https://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690
125-
126124
REGEX: EMAIL_REGEX,
127125
};
128126

129127
/**
130128
* Profile name (such as organization or first / last name) constraints.
131129
*/
132130
export const PROFILE_NAME = {
133-
MIN_LENGTH: 3,
134131
MAX_LENGTH: 50,
135-
136-
// Prohibits usage of @, <, > and :// in the name
137-
REGEX: /^(?!.*:\/\/)[^@><]*$/,
132+
REGEX: /^(?!.*:\/\/)[^@><]*$/, // Prohibits usage of @, <, > and ://
138133
};
139134

140135
/**

0 commit comments

Comments
 (0)