Skip to content

Commit 81501e5

Browse files
Merge pull request #77 from wiegandj/remove-great-britain-from-vies-validation
Remove UK (GB)
2 parents 03d13cf + 81000b6 commit 81501e5

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/Validator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class Validator
2626
'EU' => '\d{9}',
2727
'FI' => '\d{8}',
2828
'FR' => '[A-Z\d]{2}\d{9}',
29-
'GB' => '(\d{9}|\d{12}|(GD|HA)\d{3})',
3029
'HR' => '\d{11}',
3130
'HU' => '\d{8}',
3231
'IE' => '((\d{7}[A-Z]{1,2})|(\d[A-Z]\d{5}[A-Z]))',

tests/ValidatorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public function testValidateVatNumberFormat(): void
3636
'FRA2345678901',
3737
'FRAB345678901',
3838
'FR1B345678901',
39-
'GB999999973',
4039
'HU12345678',
4140
'HR12345678901',
4241
'IE1234567X',
@@ -77,7 +76,6 @@ public function testValidateVatNumberFormat(): void
7776
'ESX1234567',
7877
'FI1234567',
7978
'FR1234567890',
80-
'GB99999997',
8179
'HU1234567',
8280
'HR1234567890',
8381
'IE123456X',
@@ -98,7 +96,6 @@ public function testValidateVatNumberFormat(): void
9896
'SK123456789',
9997

10098
// valid number but with prefix
101-
'invalid_prefix_GB999999973',
10299
'invalid_prefix_IE1234567X',
103100
'invalid_prefix_ESB1234567C',
104101
'invalid_prefix_BE0123456789',

0 commit comments

Comments
 (0)