Skip to content
Snippets Groups Projects

fix: change regex for email (special character)

Merged Antonin COQUET requested to merge fix/regex-password into dev
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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
*/
Loading