Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Merge requests
!121
change regex for email
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
change regex for email
fix/change-email-adress
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Antonin COQUET
requested to merge
fix/change-email-adress
into
dev
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
c5d0e147
1 commit,
3 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/app/utils/CustomRegExp.ts
+
1
−
1
Options
@@ -6,7 +6,7 @@ export class CustomRegExp {
/**
* 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
/**
* Validate a password (at least 8 characters, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character)
Loading