File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export const vatMatchers = {
6060 DK : str => / ^ ( D K ) ? \d { 8 } $ / . test ( str ) ,
6161 EE : str => / ^ ( E E ) ? \d { 9 } $ / . test ( str ) ,
6262 FI : str => / ^ ( F I ) ? \d { 8 } $ / . test ( str ) ,
63- FR : str => / ^ ( F R ) ? \w { 2 } \d { 9 } $ / . test ( str ) ,
63+ FR : str => / ^ ( F R ) ( [ A - Z 0 - 9 ] { 2 } \d { 9 } ) $ / . test ( str ) ,
6464 DE : str => / ^ ( D E ) ? \d { 9 } $ / . test ( str ) ,
6565 EL : str => / ^ ( E L ) ? \d { 9 } $ / . test ( str ) ,
6666 HU : str => / ^ ( H U ) ? \d { 8 } $ / . test ( str ) ,
Original file line number Diff line number Diff line change @@ -15055,11 +15055,18 @@ describe('Validators', () => {
1505515055 args : [ 'FR' ] ,
1505615056 valid : [
1505715057 'FRAA123456789' ,
15058- 'AA123456789' ,
15058+ 'FR83404833048' ,
15059+ 'FR40123456789' ,
15060+ 'FRA1123456789' ,
15061+ 'FR1A123456789' ,
1505915062 ] ,
1506015063 invalid : [
1506115064 'FR AA123456789' ,
1506215065 '123456789' ,
15066+ 'FRAA123456789A' ,
15067+ 'FR123456789' ,
15068+ 'FR 83404833048' ,
15069+ 'FRaa123456789' ,
1506315070 ] ,
1506415071 } ) ;
1506515072 test ( {
You can’t perform that action at this time.
0 commit comments