This commit is contained in:
Luca Vandro 2021-02-17 10:48:10 +01:00
parent eaa9556597
commit 8ce6607d91

View File

@ -35,6 +35,7 @@ class CodiceFiscale {
}
constructor (data) {
if (typeof data === 'string') {
data = data.toUpperCase()
if (CodiceFiscale.check(data)) {
this.code = data
this.reverse()