Marketto / codice-fiscale-utils

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

CodiceFiscaleUtils.Validator.codiceFiscale doesn't return a RegExp #23

Closed Marketto closed 5 years ago

Marketto commented 5 years ago

Environment:

Platform [ ] nodeJs [X] Web/Browser

Issue description: Providing partial information to CodiceFiscaleUtils.Validator.codiceFiscale ends up with null/undefined

Steps to reproduce the problem:

CodiceFiscaleUtils.Validator.codiceFiscale({
          surname: 'D'
});

Expected behavior Should return a generic or specific validator

Additional context Vue framework