Skip to content
Snippets Groups Projects
Commit c1ba0d76 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12091 TIME 0:10 fix regex phone contact form

parent 918fda8f
No related branches found
No related tags found
No related merge requests found
...@@ -388,7 +388,7 @@ export class ContactsFormComponent implements OnInit { ...@@ -388,7 +388,7 @@ export class ContactsFormComponent implements OnInit {
if (element.identifier === 'email') { if (element.identifier === 'email') {
valArr.push(Validators.email); valArr.push(Validators.email);
} else if (element.identifier === 'phone') { } else if (element.identifier === 'phone') {
valArr.push(Validators.pattern(/\+?((|\ |\.|\(|\)|\-)?(\d)*)*\d$/)); valArr.push(Validators.pattern(/^\+?((|\ |\.|\(|\)|\-)?(\d)*)*\d$/));
} }
if (element.mandatory) { if (element.mandatory) {
......
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