Skip to content

Commit

Permalink
Added Norway to the list of available VAT ID formats (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Gajewski authored and ddeboer committed Mar 9, 2018
1 parent e382e0b commit cd6ef23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Validator
'LV' => '\d{11}',
'MT' => '\d{8}',
'NL' => '\d{9}B\d{2}',
'NO' => '\d{9}',
'PL' => '\d{10}',
'PT' => '\d{9}',
'RO' => '\d{2,10}',
Expand Down
1 change: 1 addition & 0 deletions tests/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function getValidVatins()
array('IE1234567TW'), // Ireland
array('IE1234567FA'), // Ireland (since January 2013)
array('NL999999999B99'), // The Netherlands
array('NO999999999'), // Norway
array('ES99999999R'), // Spain
array('SE999999999901'), // Sweden
array('GB999999973'), // United Kingdom (standard)
Expand Down

0 comments on commit cd6ef23

Please sign in to comment.