Skip to content

Alnum validator #114

ramirovjr opened this Issue Feb 13, 2013 · 6 comments

6 participants


The Alnum validator is not respecting the additional chars param.

If I do both:

use \Respect\Validation\Validator as v;

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

@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 .


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

Respect member
alganet commented Feb 20, 2013

Let us know if you need anything!

@nickl- nickl- added a commit that closed this issue Feb 22, 2013
@nickl- nickl- Fix #114 Respect additionalChars f1f9bc0
@nickl- nickl- closed this in f1f9bc0 Feb 22, 2013
eedithz commented May 28, 2015

Hi, can you reopen this issue? I am trying


but it return false.

Respect member

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

eedithz 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
Something went wrong with that request. Please try again.