Alnum validator #114

Closed
ramirovjr opened this Issue Feb 13, 2013 · 6 comments

Comments

Projects
None yet
6 participants
@ramirovjr

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

This comment has been minimized.

Show comment
Hide comment
@cloudson

cloudson Feb 13, 2013

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 .

Contributor

cloudson commented Feb 13, 2013

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

@ramirovjr

This comment has been minimized.

Show comment
Hide comment
@ramirovjr

ramirovjr Feb 19, 2013

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

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

@alganet

This comment has been minimized.

Show comment
Hide comment
@alganet

alganet Feb 20, 2013

Member

Let us know if you need anything!

Member

alganet commented Feb 20, 2013

Let us know if you need anything!

@ediasep

This comment has been minimized.

Show comment
Hide comment
@ediasep

ediasep May 28, 2015

Hi, can you reopen this issue? I am trying

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

but it return false.

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

This comment has been minimized.

Show comment
Hide comment
@henriquemoody

henriquemoody May 28, 2015

Member

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

Member

henriquemoody commented May 28, 2015

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

@ediasep

This comment has been minimized.

Show comment
Hide comment
@ediasep

ediasep May 29, 2015

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

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