aymericbouzy / french-ssn

🇫🇷 A parser / validator for French Social Security Number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: wrong country response when parsing SSN

pdavim opened this issue · comments

SSN: 195029851007603
Expected
country should be PAPPUA/NEWGUINÉ code 510

Actual result
{ "birth": { "month": { "name": "février", "index": 2 }, "year": 1995, "country": { "unknown": true }, "county": { "unknown": true, "insee": "985", "error": "appears to be incorrect" }, "city": { "insee": "98510" }, "approximateDate": "1995-02-15T00:00:00.000Z" }, "gender": { "name": "male", "title": "M" }, "provisional": false, "approximateAge": 28 }

First time I see this, I was expecting it to be code 99510

Are you certain that the person with that SSN was born in Papua New Guinea?