Skip to content

Commit

Permalink
updated validate phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
khanh1902 committed Jun 29, 2024
1 parent cdbc204 commit 3885389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/Prompting.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class Prompting extends ComponentDialog {
email: (response.match(
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g
) || [])[0],
phonenumber: (response.match(
'phone-number': (response.match(
/(\+?\d{1,2}\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}/
) || [])[0],
};
Expand Down

0 comments on commit 3885389

Please sign in to comment.