Skip to content

Commit

Permalink
Fix normalize problem
Browse files Browse the repository at this point in the history
  • Loading branch information
greenlikeorange authored Jan 22, 2020
1 parent 564e9fc commit e4e2107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myanmar-phonenumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
myanmarPhoneNumber.normalizeInput = function (phoneNumber) {
if (!phoneNumber) return new Error('Please include phoneNumber parameter.');

var possibleCases = /(09-)|(\+959)|(09\s)|(959)|(09\.)/
var possibleCases = /^((09-)|(\+959)|(09\s)|(959)|(09\.))/
var sanitizedNumber = this.sanitizeInput(phoneNumber);

// spaces, dup cases
Expand Down

0 comments on commit e4e2107

Please sign in to comment.