Skip to content

Commit 8637478

Browse files
author
Divyansh Singh
authored
Revert "update IN phone number regex (#213)" (#216)
This reverts commit 1d16546.
1 parent ab0eaca commit 8637478

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

i18nify-data/phone-number/country-code-to-phone-number/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
"IN": {
519519
"dial_code": "+91",
520520
"format": "xxxx xxxxxx",
521-
"regex": "^(?:(?:\\+|0{0,2})91\\s*[-]?\\s*|[0]?)?[6789]\\d{9}$"
521+
"regex": "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}"
522522
},
523523
"ID": {
524524
"dial_code": "+62",

packages/i18nify-js/src/modules/phoneNumber/data/phoneRegexMapper.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"HK": "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",
103103
"HU": "[235-7]\\d{8}|[1-9]\\d{7}",
104104
"IS": "(?:38\\d|[4-9])\\d{6}",
105-
"IN": "^(?:(?:\\+|0{0,2})91\\s*[-]?\\s*|[0]?)?[6789]\\d{9}$",
105+
"IN": "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",
106106
"ID": "(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",
107107
"IR": "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",
108108
"IQ": "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",
@@ -259,4 +259,4 @@
259259
"GB-SCT": "",
260260
"GB-UKM": "",
261261
"GB-WLS": ""
262-
}
262+
}

0 commit comments

Comments
 (0)