feat: more phone validation

This commit is contained in:
loks0n committed 2023-11-17 18:09:20 +00:00
1 parent e16387e463
commit 61e2b7a787
2 files changed
+9 -1

No files matched your search

+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);
}
/**