Skip to content

Commit 8d7ce11

Browse files
authored
Merge 63e3060 into 8831db3
2 parents 8831db3 + 63e3060 commit 8d7ce11

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const phones = {
4646
'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
4747
'en-PH': /^(09|\+639)\d{9}$/,
4848
'en-RW': /^(\+?250|0)?[7]\d{8}$/,
49-
'en-SG': /^(\+65)?[689]\d{7}$/,
49+
'en-SG': /^(\+65)?[3689]\d{7}$/,
5050
'en-SL': /^(?:0|94|\+94)?(7(0|1|2|5|6|7|8)( |-)?\d)\d{6}$/,
5151
'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
5252
'en-UG': /^(\+?256|0)?[7]\d{8}$/,

test/validators.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6161,13 +6161,15 @@ describe('Validators', () => {
61616161
{
61626162
locale: 'en-SG',
61636163
valid: [
6164+
'32891278',
61646165
'87654321',
61656166
'98765432',
61666167
'+6587654321',
61676168
'+6598765432',
61686169
'+6565241234',
61696170
],
61706171
invalid: [
6172+
'332891231',
61716173
'987654321',
61726174
'876543219',
61736175
'8765432',

0 commit comments

Comments
 (0)