Skip to content

Add option to do strict validation check #123

@RobbeCl

Description

@RobbeCl

I ran into a 'bug' where the system said the VAT number is valid, when it was actually not.

checkVAT('BE0740-509975', countries) return true, because the library automatically clears the special characters (https://github.com/se-panfilov/jsvat/blob/master/src/lib/jsvat.ts#L107)

Would it be possible to add an attribute that specifies if the client actually wants to remove those characters?

I don't mind submitting a PR, if you don't have the time to implement this.

Thanks for your library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions