Skip to content

Commit a97df27

Browse files
committed
Fix validation for Saudi Arabia landline
1 parent d22d121 commit a97df27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/CountryLandlineValidator/SALandlineValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class SALandlineValidator implements CountryLandlineValidator
99
*/
1010
public function validate($value): bool
1111
{
12-
return preg_match('/^(?:(?:\+966|00966)[\s\-]?1\d{7}|01\d{7})$/', $value);
12+
return preg_match('/^((?:[+?0?0?966]+)(?:\s?\d{2})(?:\s?\d{7}))$/', $value);
1313
}
1414
}

0 commit comments

Comments
 (0)