Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-breaking space #319

Open
emrahamet opened this issue Aug 20, 2020 · 1 comment
Open

Non-breaking space #319

emrahamet opened this issue Aug 20, 2020 · 1 comment
Labels

Comments

@emrahamet
Copy link

$v = new Validator(['name' => "\xc2\xa0"]);
$v->rule('required', 'name');


if($v->validate()) {
	echo "Yay! We're all good!";
} else {
	// Errors
	print_r($v->errors());
}

output:
Yay! We're all good!

@mehdihasanpour
Copy link
Contributor

I think this behavior is okay. In this situation, we expect to have a name field in our request body and the value of the name field is not essential for us only the existence of the name field is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants