Update isVAT.js by Dev1lDragon · Pull Request #1989 · validatorjs/validator.js

@Dev1lDragon

Add basic regex support to all countries listed in VAT identification number - Wikipedia;

More extended validation for PT(Portugal).

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)

@codecov

@WikiRik

Can you add new tests for these?

@Dev1lDragon

@WikiRik I added some tests for all element of vat validator list

@rubiin

@Dev1lDragon can you squash the commits. There seems to be more than 10+ commits

@Dev1lDragon

Update isVAT.js

Add basic regex support to all countries listed in [VAT identification number - Wikipedia](https://en.wikipedia.org/wiki/VAT_identification_number);

More extended validation for PT(Portugal).

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update validators.js

Update validators.js

Update validators.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

Update isVAT.js

tux-tn

tux-tn previously requested changes Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR @Dev1lDragon, can you please add an entry to the README file to include the added country codes in isVAT ?

@Dev1lDragon

Add available country codes in isVAT

rubiin

rubiin

rubiin