Marketto / codice-fiscale-utils

Utility to handle Italian Codice Fiscale
MIT License
25 stars 11 forks source link

Inaccurate decode of lowercase fiscal code (Parser) #34

Closed Marketto closed 5 years ago

Marketto commented 5 years ago

Environment:

Platform [X] nodeJs [X] Web/Browser

Issue description: Parsing methods don't work properly providing lowercase fiscal code

Steps to reproduce the problem:

  1. import library
  2. CodiceFiscaleUtils.Parser.cfDecode('xxxxxxxxx'); //lower case fiscal code
  3. Provided birth month is not correct: always january

Expected behavior Have the same output providing the same CF uppercase, lowercase and mixed