Commit 698f4e6
authored
fix(isVAT): corrected validation for Swiss (CH) locale (#2203)
* correct isVAT regex for CH
* use checkdigit for swiss isvat
* allow space as number separator, edit test cases
* fix: correct test-case, edit comment
* extract vat matcher for Switzerland (CH)
- adjust number separation rule
- edit comments in test1 parent 9e73a1c commit 698f4e6
2 files changed
Lines changed: 40 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
4 | 19 | | |
5 | 20 | | |
6 | 21 | | |
| |||
69 | 84 | | |
70 | 85 | | |
71 | 86 | | |
72 | | - | |
| 87 | + | |
73 | 88 | | |
74 | 89 | | |
75 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13891 | 13891 | | |
13892 | 13892 | | |
13893 | 13893 | | |
13894 | | - | |
13895 | | - | |
13896 | | - | |
13897 | | - | |
13898 | | - | |
13899 | | - | |
13900 | | - | |
13901 | | - | |
13902 | | - | |
13903 | | - | |
13904 | | - | |
13905 | | - | |
| 13894 | + | |
| 13895 | + | |
| 13896 | + | |
| 13897 | + | |
| 13898 | + | |
| 13899 | + | |
| 13900 | + | |
| 13901 | + | |
| 13902 | + | |
| 13903 | + | |
| 13904 | + | |
| 13905 | + | |
| 13906 | + | |
| 13907 | + | |
| 13908 | + | |
| 13909 | + | |
| 13910 | + | |
| 13911 | + | |
| 13912 | + | |
| 13913 | + | |
| 13914 | + | |
| 13915 | + | |
| 13916 | + | |
| 13917 | + | |
13906 | 13918 | | |
13907 | 13919 | | |
13908 | 13920 | | |
| |||
0 commit comments