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

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

fix: change regex for email (special character)

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!141
parents 0e064c5b 22502723
Branches
No related tags found
3 merge requests!178release V1.10.0,!154Dev,!141fix: change regex for email (special character)
......@@ -2,7 +2,7 @@ export class CustomRegExp {
/**
* Validate a password (at least 8 characters, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character)
*/
public static readonly PASSWORD: RegExp = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/; //NOSONAR
public static readonly PASSWORD: RegExp = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[*.! @#$%^&(){}\[\]:;<>,?\/\\~_+\-=|])(?=.{8,})/; //NOSONAR
/**
* Validate an email
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment