Skip to content

Commit be65da8

Browse files
committed
fix(validation): correct Lithuanian century digit mapping and improve test coverage
- Fix critical bug in Lithuanian Personal Code year calculation - Digit 3 now correctly maps to 1900s (was incorrectly 1800s) - Replace flawed mathematical formula with clear if-else logic - All century digits (1-8) now properly validated - Add parseIdInfo support for Iceland, Lithuania, and Luxembourg - Fix documentation discrepancy in package.json (103 → 80 countries) - Add comprehensive test suite for 9 low-coverage countries (101 new tests) - HUN, ISL, LTU, LUX, ALB, COL, HKG, IRN, ISR - Improve overall test coverage from 61.95% to 68.24% Coverage improvements: - HKG: 20.00% → 100.00% (+80.00%) - COL: 20.68% → 89.65% (+68.97%) - ISL: 15.38% → 82.05% (+66.67%) - LTU: 15.38% → 81.35% (+65.97%) - HUN: 13.04% → 76.08% (+63.04%) BREAKING: None Fixes data integrity issue where Lithuanian IDs returned incorrect birth years
1 parent aeaf7db commit be65da8

File tree

4 files changed

+424
-6
lines changed

4 files changed

+424
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "idnumbers",
33
"version": "1.0.0",
4-
"description": "A TypeScript library for verifying and parsing national ID numbers - supports 103 countries across 6 continents including USA, UK, France, Germany, Japan, China, India, Brazil, and many more",
4+
"description": "A TypeScript library for verifying and parsing national ID numbers - supports 80 countries across 6 continents including USA, UK, France, Germany, Japan, China, India, Brazil, and many more",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {

0 commit comments

Comments
 (0)