File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Validator
29
29
'GB ' => '(\d{9}|\d{12}|(GD|HA)\d{3}) ' ,
30
30
'HR ' => '\d{11} ' ,
31
31
'HU ' => '\d{8} ' ,
32
- 'IE ' => '([A-Z\d]{8}| [A-Z\d]{9} ) ' ,
32
+ 'IE ' => '((\d{7} [A-Z]{1,2})|(\d [A-Z]\d{5}[A-Z]) ) ' ,
33
33
'IT ' => '\d{11} ' ,
34
34
'LT ' => '(\d{9}|\d{12}) ' ,
35
35
'LU ' => '\d{8} ' ,
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ public function testValidateVatNumberFormat()
39
39
'HU12345678 ' ,
40
40
'HR12345678901 ' ,
41
41
'IE1234567X ' ,
42
+ 'IE1X34567X ' ,
43
+ 'IE1234567XX ' ,
42
44
'IT12345678901 ' ,
43
45
'LT123456789 ' ,
44
46
'LU12345678 ' ,
@@ -78,6 +80,9 @@ public function testValidateVatNumberFormat()
78
80
'HU1234567 ' ,
79
81
'HR1234567890 ' ,
80
82
'IE123456X ' ,
83
+ 'IE1X34567XX ' ,
84
+ 'IE12345678X ' ,
85
+ 'IE123456789 ' ,
81
86
'IT1234567890 ' ,
82
87
'LT12345678 ' ,
83
88
'LU1234567 ' ,
You can’t perform that action at this time.
0 commit comments