We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d22d121 commit a97df27Copy full SHA for a97df27
src/Utils/CountryLandlineValidator/SALandlineValidator.php
@@ -9,6 +9,6 @@ class SALandlineValidator implements CountryLandlineValidator
9
*/
10
public function validate($value): bool
11
{
12
- return preg_match('/^(?:(?:\+966|00966)[\s\-]?1\d{7}|01\d{7})$/', $value);
+ return preg_match('/^((?:[+?0?0?966]+)(?:\s?\d{2})(?:\s?\d{7}))$/', $value);
13
}
14
0 commit comments