Skip to content

Commit

Permalink
Merge pull request #1 from Mahmoud-Barry/promobile
Browse files Browse the repository at this point in the history
add validation for promobile users
  • Loading branch information
birante authored May 10, 2022
2 parents 8edc053 + 146af55 commit e394f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const isValidMobilePhone = phone => {
const validMobilePhoneRegEx = /((\+221|00221)?)((7[7608][0-9]{7}$)|(3[03][98][0-9]{6}$))/;
const validMobilePhoneRegEx = /((\+221|00221)?)((7[76085][0-9]{7}$)|(3[03][98][0-9]{6}$))/;
return validMobilePhoneRegEx.test(phone);
}

Expand Down

0 comments on commit e394f47

Please sign in to comment.