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

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