Skip to content

Spanish NIE incorrectly marked as "Not a VAT number" #10

Description

@andretse77

I'm using the validator to validate different kinds of vat numbers, but whenever I use the spanish NIE (which is the Spanish Foreigner Identity Number) I keep getting an error saying it's not a vat number even though I checked on this website https://www.validardni.es/ and it's valid. I tried with several others NIEs and some of them are working and some of them are not (for example Y6671688B doesn't work).

It seems that the current implementation may not correctly support all valid NIE formats. Could you please confirm if full NIE support is intended, and whether this might be a bug? I'm happy to provide more examples or assist with debugging if needed.

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