Validator.js: ignore options in "isAlpha" don't work

Created on 19 Nov 2020  ·  7Comments  ·  Source: validatorjs/validator.js

Describe the bug
"Ignore" options in "isAlpha" don't work.
This parameter is not present in the source code.

Examples
validator['isAlpha']('en-US', 'en-US', { ignore: '- /' }) //false

image

Additional context
Validator.js version: 13.1.17
Node.js version: 12.13.1
OS platform: linux

🐛 bug

Most helpful comment

@dedpnd and @jonadeline, we are working on making a release this weekend.
cc. @profnandaa.

All 7 comments

It seems that the ignore option feature hasn't been released yet.
It has been merged to master 4 days ago but there was no release since then.
https://github.com/validatorjs/validator.js/commit/b569296c80b45387d3fddfd7aaf497f20848ef55

The documentation shouldn't mention the option if not released yet though.

@dedpnd and @jonadeline, we are working on making a release this weekend.
cc. @profnandaa.

Same
image

Didn't make to release in the weekend but should be out today, all factors
constant.

./na

On Mon, Nov 23, 2020 at 12:17 AM Royer Adames notifications@github.com
wrote:

Same
[image: image]
https://user-images.githubusercontent.com/16887907/99917423-2df00a80-2cde-11eb-86c7-cb90e1df3108.png


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/validatorjs/validator.js/issues/1524#issuecomment-731848553,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB7ZEMSE23KYJ67SEJWN5LSRF5WTANCNFSM4T3AW5MQ
.

>

Sent from a tiny device while on the move.

Thank you, waiting for updates.

I confirm that it doesn't work yet, for now I just remove the spaces before using the isAlpa validator:

if (!validator.isAlpha(this.nameOnCard.value.replace(/\s/g, ''))) {
  this.nameOnCard.setErrors({ invalid: true });
}

Sorry for the delay, we should be making the release today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rubiin picture rubiin  ·  3Comments

malkhuzayyim picture malkhuzayyim  ·  4Comments

AnandChowdhary picture AnandChowdhary  ·  3Comments

spyshower picture spyshower  ·  3Comments

smohiuddin picture smohiuddin  ·  4Comments