Skip to content

Commit

Permalink
Update vat_number to exclude GB and include XI, fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphje committed Sep 7, 2021
1 parent c9c7f65 commit 4cea3de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internationalflavor/vat_number/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'SE': r'^\d{12}$',
'SI': r'^\d{8}$',
'SK': r'^\d{10}$',
'XI': r'^(\d{9}|\d{12}|GD\d{3}|HA\d{3})$',
'EU': r'^\d{9}$',

# Others
Expand Down Expand Up @@ -83,7 +84,7 @@
others: https://en.wikipedia.org/wiki/VAT_identification_number
"""

EU_VAT_AREA = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'GB', 'HR',
EU_VAT_AREA = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'XI', 'HR',
'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK']

VAT_MIN_LENGTH = 4 # Romania seems to have the shortest
Expand Down

0 comments on commit 4cea3de

Please sign in to comment.