mirror of
https://github.com/danog/CodiceFiscaleJS.git
synced 2024-11-30 04:29:11 +01:00
fixed bug #55
This commit is contained in:
parent
eaa9556597
commit
8ce6607d91
@ -35,6 +35,7 @@ class CodiceFiscale {
|
||||
}
|
||||
constructor (data) {
|
||||
if (typeof data === 'string') {
|
||||
data = data.toUpperCase()
|
||||
if (CodiceFiscale.check(data)) {
|
||||
this.code = data
|
||||
this.reverse()
|
||||
|
Loading…
Reference in New Issue
Block a user