ddeboer / vatin

Validate VAT identification numbers
MIT License
136 stars 37 forks source link

validation for Ireland fails #4

Closed tamabe closed 10 years ago

tamabe commented 10 years ago

validation if an Irish VAT ID (IE9574245O) fails.

According to http://en.wikipedia.org/wiki/VAT_identification_number Irish VAT uses 7 digits and one or two letters. Besides of the first two rules there is a deprecated third rule, too.

But the used regex just checks for 8 digits (https://github.com/ddeboer/vatin/blob/master/src/Ddeboer/Vatin/Validator.php#L37) which is never a valid Irish VAT.