heavybeard / codice-fiscale

Javascript object for managing the italian tax code
http://heavybeard.github.io/codice-fiscale/
MIT License
9 stars 4 forks source link

error while calculating commune code for more than one word commune names #1

Closed Bohrlotto closed 6 years ago

Bohrlotto commented 7 years ago

Hi, if I try to calculate the taxcode for a guy born in Castelnuovo di Napoli or in Napoli, the commune code is always the same (F839), that is the one belonging to the former.

heavybeard commented 7 years ago

Hi, thanks for your feedback.

Castelnuovo di Napoli is not presente inside cadastralCode "json", maybe it's necessary and update of the list.

If you find an updated list, can you create a PR? (or copy and paste the link here)

I can't looking for it right now

Bohrlotto commented 6 years ago

Hi, I was referring to casalnuovo di napoli (B905). I think that is something related to the regular expression.

heavybeard commented 6 years ago

Ok, got it. I checked your commit.

Can you create a PR to update this repo too