Skip to content

Commit

Permalink
Fix Hungary VAT regex to accept 9s
Browse files Browse the repository at this point in the history
  • Loading branch information
robingustafsson authored and ralphje committed Oct 20, 2016
1 parent b5197b9 commit dbc1dcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internationalflavor/vat_number/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'FR': r'^[A-Z0-9]{2}\d{9}$',
'GB': r'^(\d{9}|\d{12}|GD\d{3}|HA\d{3})$',
'HR': r'^\d{11}$',
'HU': r'^[0-8]{8}$',
'HU': r'^[0-9]{8}$',
'IE': r'^\d[A-Za-z0-9]\d{5}[A-Za-z]$',
'IT': r'^\d{11}$',
'LT': r'^(\d{9}|\d{12})$',
Expand Down
2 changes: 2 additions & 0 deletions tests/test_vat_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class VATNumberTestCase(TestCase):
'DE114103379': 'DE114103379',

'BE 0203.201.340': 'BE0203201340',

'HU99999999': 'HU99999999'
}
invalid = {
'NL820646661B01': ['This VAT number does not match the requirements for NL.'],
Expand Down

0 comments on commit dbc1dcf

Please sign in to comment.