Skip to content

Commit

Permalink
Fix Norway VAT pattern (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Siemen <[email protected]>
  • Loading branch information
siemendev and Patrick Siemen committed May 30, 2020
1 parent 6f2c1eb commit 7eeeec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Validator
'LV' => '\d{11}',
'MT' => '\d{8}',
'NL' => '\d{9}B\d{2}',
'NO' => '\d{9}',
'NO' => '\d{9}(MVA){0,1}',
'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 @@ -89,6 +89,7 @@ public function getValidVatins()
array('IE1234567FA'), // Ireland (since January 2013)
array('NL999999999B99'), // The Netherlands
array('NO999999999'), // Norway
array('NO999999999MVA'), // Norway (including MVA)
array('ES99999999R'), // Spain
array('SE999999999901'), // Sweden
array('CHE-123.456.788 TVA'), // Switzerland
Expand Down

0 comments on commit 7eeeec5

Please sign in to comment.