From e4e2107df338a8de5fb860516df606f49d4a5728 Mon Sep 17 00:00:00 2001 From: Thuya Myo Nyunt Date: Wed, 22 Jan 2020 10:52:13 +0630 Subject: [PATCH] Fix normalize problem --- myanmar-phonenumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myanmar-phonenumber.js b/myanmar-phonenumber.js index 9eea4ef..6b7223c 100644 --- a/myanmar-phonenumber.js +++ b/myanmar-phonenumber.js @@ -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