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

Alnum validator #114

Closed
ghost opened this issue Feb 13, 2013 · 6 comments
Closed

Alnum validator #114

ghost opened this issue Feb 13, 2013 · 6 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2013

The Alnum validator is not respecting the additional chars param.

If I do both:

<?php
use \Respect\Validation\Validator as v;

v::alnum('#')->validate('abc 123 #'); // returns false
(new \Respect\Validation\Rules\Alnum('#'))->validate('abc 123 #'); // returns false
@filhodanuvem
Copy link
Contributor

@ramirovjr which version are you using?
right here

v::alnum('#')->validate('abc 123 #'); // returns false

returns true. I'm using version 0.4.4 with php 5.4.6 and php 5.3.9 .

@ghost
Copy link
Author

ghost commented Feb 19, 2013

I'm using the trunk version, but I need to recheck. I'll do it later.

@alganet
Copy link
Member

alganet commented Feb 20, 2013

Let us know if you need anything!

@ediasep
Copy link

ediasep commented May 28, 2015

Hi, can you reopen this issue? I am trying

v::alnum("@")->validate("my@email.com")

but it return false.

@henriquemoody
Copy link
Member

@eedithz, no need to reopen, your validation is not passing because you also have a . which is not an alphanumeric character.

@ediasep
Copy link

ediasep commented May 29, 2015

Ah, silly me.. thanks for your answer..

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

No branches or pull requests

5 participants