Merge pull request #7165 from appwrite/feat-more-phone-validation

Feat more phone validation
This commit is contained in:
Eldad A. Fux authored and GitHub committed 2024-02-18 22:39:45 +01:00
commit 44a9aed48e
2 files changed
+8 -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);
}
/**