Skip to content
Snippets Groups Projects
Commit a8f5bbc6 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'fix/regex-email-password' into 'dev'

fix: update regex of password and email to handle hyphen

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!138
parents 2f79b5fb 2ca0b3d9
No related branches found
No related tags found
3 merge requests!178release V1.10.0,!154Dev,!138fix: update regex of password and email to handle hyphen
...@@ -6,7 +6,7 @@ export class CustomRegExp { ...@@ -6,7 +6,7 @@ export class CustomRegExp {
/** /**
* Validate an email * Validate an email
*/ */
public static readonly EMAIL: RegExp = /^[a-z0-9.-_]+@[a-z0-9.-]+[.][a-z]{2,3}/; //NOSONAR public static readonly EMAIL: RegExp = /^[a-z0-9.\-_]+@[a-z0-9.-]+[.][a-z]{2,3}/; //NOSONAR
public static readonly TEXT_WITHOUT_NUMBER: RegExp = /^[A-Za-zÀ-ÖØ-öø-ÿ- ]{1,}$/; //NOSONAR public static readonly TEXT_WITHOUT_NUMBER: RegExp = /^[A-Za-zÀ-ÖØ-öø-ÿ- ]{1,}$/; //NOSONAR
/** /**
* Validate a password (at least 8 characters, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character) * Validate a password (at least 8 characters, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment