Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update isVAT.js #1989

Merged
merged 2 commits into from
Jul 19, 2022
Merged

Update isVAT.js #1989

merged 2 commits into from
Jul 19, 2022

Conversation

Dev1lDragon
Copy link
Contributor

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)

@Dev1lDragon Dev1lDragon reopened this Jun 16, 2022
@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #1989 (bcac756) into master (cfcf911) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #1989   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          103       103           
  Lines         2097      2174   +77     
  Branches       473       475    +2     
=========================================
+ Hits          2097      2174   +77     
Impacted Files Coverage Δ
src/lib/isVAT.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfcf911...bcac756. Read the comment docs.

@WikiRik
Copy link
Member

WikiRik commented Jun 17, 2022

Can you add new tests for these?

@Dev1lDragon
Copy link
Contributor Author

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

@rubiin
Copy link
Member

rubiin commented Jun 21, 2022

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

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
Copy link
Member

@tux-tn tux-tn left a comment

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 ?

@tux-tn tux-tn added 🧹 needs-update For PRs that need to be updated before landing needs-more-review 🎉 first-pr labels Jun 24, 2022
Add available country codes in isVAT
@rubiin rubiin requested a review from tux-tn July 18, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 first-pr needs-more-review 🧹 needs-update For PRs that need to be updated before landing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants