Skip to content
Extraits de code Groupes Projets
Valider b94316e3 rédigé par Brieuc Dubois's avatar Brieuc Dubois
Parcourir les fichiers

Fix #151

parent c0112359
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -28,12 +28,7 @@ export function validateEmail(email: unknown): email is string {
}
export function validateUsername(username: unknown): username is string {
return (
typeof username === 'string' &&
username.length >= 3 &&
username.length <= 31 &&
/^[a-z0-9_-]+$/.test(username)
);
return typeof username === 'string' && username.length >= 3 && username.length <= 31;
}
export function validatePassword(password: unknown): password is string {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter