feat: more phone validation

This commit is contained in:
loks0n
2023-11-17 18:09:20 +00:00
parent e16387e463
commit 61e2b7a787
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class Phone extends Validator
*/
public function isValid($value): bool
{
return is_string($value) && !!\preg_match('/^\+[1-9]\d{1,14}$/', $value);
return is_string($value) && !!\preg_match('/^\+[1-9]\d{6,14}$/', $value);
}
/**