Skip to content

question: isAlpha enhancement from validatorjs #1144

@TBG-FR

Description

@TBG-FR

I was trying to use isAlphanumeric validator, wondering if there was an option to allow one extra character while doing so (a space or - for example). Looks like it has been implemented in validatorjs PR1286 - isAlpha enhancement but I don't find it in class-validator...

The problem:
Usage in validatorjs : .isAlpha('en-US', {ignore: ' '})
Usage in class-validator : .isAlpha('en-US', { ??? })
image

Is it something not yet implemented, or is it normal ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions