validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

fix(isVAT): fixed KZ VAT number length check

Open MatthieuLemoine opened this issue 2 years ago • 1 comments

According to Wikipedia and the source linked in this article, Kazakh VAT numbers are 12 digits long, not 9.

image

Checklist

  • [x] PR contains only changes related; no stray files, etc.
  • [ ] README updated (where applicable)
  • [x] Tests written (where applicable)
  • [x] References provided in PR (where applicable)

MatthieuLemoine avatar Aug 30 '23 14:08 MatthieuLemoine

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b958bd7) 99.95% compared to head (6fa00af) 99.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2279   +/-   ##
=======================================
  Coverage   99.95%   99.95%           
=======================================
  Files         107      107           
  Lines        2454     2454           
  Branches      619      619           
=======================================
  Hits         2453     2453           
  Partials        1        1           
Files Changed Coverage Δ
src/lib/isVAT.js 100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Aug 30 '23 14:08 codecov[bot]