File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ func (a andorra) Calc(vat string) bool {
35
35
return false
36
36
}
37
37
38
- if ! strings .Contains ("ACDEFGLOPU" , firstLetter ) {
38
+ if ! strings .Contains (andFirstLetterFull , firstLetter ) {
39
39
return false
40
40
}
41
41
42
42
if firstLetter == "F" && number > 699999 {
43
43
return false
44
44
}
45
45
46
- if strings .Contains ("AL" , firstLetter ) && number > 699999 && number < 800000 {
46
+ if strings .Contains (andFirstLetterPrefix , firstLetter ) && number > 699999 && number < 800000 {
47
47
return false
48
48
}
49
49
@@ -53,3 +53,8 @@ func (a andorra) Calc(vat string) bool {
53
53
func (a andorra ) GetCountry () Country {
54
54
return a .Country
55
55
}
56
+
57
+ const (
58
+ andFirstLetterFull = "ACDEFGLOPU"
59
+ andFirstLetterPrefix = "AL"
60
+ )
You can’t perform that action at this time.
0 commit comments