validator.js
validator.js copied to clipboard
feat(isISO4217): update iso4217 currency codes according to wiki
feat(isISO4217): update iso4217 currency codes according to wiki
- Removed 'CUC' and 'HRK' currency codes
| Code | Num | D | Currency | From | Until | Replaced by |
|---|---|---|---|---|---|---|
| HRK | 191 | 2 | Croatian kuna | 1994-05-30 | 2023-01-01 | EUR[31] |
| CUC | 931 | 2 | Cuban convertible peso | 2022 | CUP |
- Added 'SLE' and 'VED' currency codes
| Code | Num | D | Currency | Locations |
|---|---|---|---|---|
| SLE | 925 | 2 | Sierra Leonean leone (new leone)[12][13][14] | |
| VED | 926 | 2 | Venezuelan digital bolívar[18] |
Resources:
- https://en.wikipedia.org/wiki/ISO_4217#Active_codes_(List_One)
Checklist
- [x] PR contains only changes related; no stray files, etc.
- [x] README updated (where applicable)
- [x] Tests written (where applicable)
- [x] References provided in PR (where applicable)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b958bd7) 99.95% compared to head (5c382bc) 99.95%.
Additional details and impacted files
@@ Coverage Diff @@
## master #2332 +/- ##
==========================================
- Coverage 99.95% 99.95% -0.01%
==========================================
Files 107 107
Lines 2454 2449 -5
Branches 619 619
==========================================
- Hits 2453 2448 -5
Partials 1 1
| Files | Coverage Δ | |
|---|---|---|
| src/lib/isISO4217.js | 100.00% <ø> (ø) |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for your contrib!