Merge pull request #6392 from devansh-webkul/validation

Updated Validation
This commit is contained in:
Jitendra Singh 2022-05-06 10:32:12 +05:30 committed by GitHub
commit 88d00cce5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class AlphaNumericSpace implements Rule
*/
public function passes($attribute, $value)
{
return preg_match('/^[a-zA-Z0-9\s]+$/', $value);
return preg_match('/[a-zA-Z0-9\s]+/', $value);
}
/**