Skip to content

Commit 3aeeb2b

Browse files
fix(isMobilePhone): add support for en-SG +656 (#1337)
1 parent ccac8fd commit 3aeeb2b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const phones = {
3838
'en-NZ': /^(\+?64|0)[28]\d{7,9}$/,
3939
'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
4040
'en-RW': /^(\+?250|0)?[7]\d{8}$/,
41-
'en-SG': /^(\+65)?[89]\d{7}$/,
41+
'en-SG': /^(\+65)?[689]\d{7}$/,
4242
'en-SL': /^(?:0|94|\+94)?(7(0|1|2|5|6|7|8)( |-)?\d)\d{6}$/,
4343
'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
4444
'en-UG': /^(\+?256|0)?[7]\d{8}$/,

test/validators.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5512,6 +5512,7 @@ describe('Validators', () => {
55125512
'98765432',
55135513
'+6587654321',
55145514
'+6598765432',
5515+
'+6565241234',
55155516
],
55165517
invalid: [
55175518
'987654321',

0 commit comments

Comments
 (0)