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