Skip to content

Conversation

@bambamboole
Copy link

@bambamboole bambamboole commented Dec 28, 2025

This PR adds a new validation rules for a European VAT number.

Its is only validating the format and not for existence

Copy link
Member

@olivervogel olivervogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much. I have two change requests. Otherwise, it's a good idea and implementation.

Copy link
Member

@olivervogel olivervogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I noticed one last thing.

yield [true, 'CHE123456789TVA'];
yield [true, 'CHE123456789IVA'];
yield [true, 'CH123456'];
yield [true, ' de123456789 '];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
yield [true, ' de123456789 '];
yield [false, ' de123456789 '];

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches the behaviour of the other rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants