Skip to content

Commit e451e53

Browse files
committed
Update europlate.client.ts
1 parent 193ef56 commit e451e53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client/europlate.client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ export function createEuroPlate(EuroMod: any, opts: EuroPlateOptions): EuroPlate
12061206
}
12071207

12081208
const hardClearMaskDebounced = debounce(hardClearMask, timings.clear);
1209-
1209+
12101210
// untill 1.0.13
12111211
// const normalizePattern = (p: string) =>
12121212
// String(p)
@@ -1616,7 +1616,7 @@ export function createEuroPlate(EuroMod: any, opts: EuroPlateOptions): EuroPlate
16161616
if (v2 !== raw) input.value = raw = v2;
16171617
}
16181618
// non validiamo finche nn c e un risultato minimo
1619-
if (raw.trim()?.length <= 2) return { ok: false, value: raw };
1619+
if (raw.trim()?.length <= 5) return { ok: false, value: raw };
16201620

16211621
const countries = selected === "AUTO" ? allowed : [selected];
16221622
const res = validatePlate(raw, countries, { vehicleType });
@@ -1712,7 +1712,7 @@ export function createEuroPlate(EuroMod: any, opts: EuroPlateOptions): EuroPlate
17121712
hardClearMask(input); // ⚠️ IMPORTANTISSIMO: rimuovi SUBITO la vecchia mask (no debounce)
17131713

17141714
const hasText = !!input.value.trim();
1715-
const short = hasText && input.value.trim().length <= 2;
1715+
const short = hasText && input.value.trim().length <= 5;
17161716

17171717
if (selected === "AUTO") {
17181718
// 2) AUTO: nessuna mask

0 commit comments

Comments
 (0)