Skip to content

Commit c0bd68c

Browse files
♻️ ajusta formatação da expressão regular do Mercosul
1 parent 715c0d8 commit c0bd68c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/is-valid-license-plate/is-valid-license-plate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const mercosulRegex = /^[a-z]{3}[0-9]{1}[a-z]{1}[0-9]{2}$|^[a-z]{3}[0-9]{2}[a-z]{1}[0-9]{1}$/i;
1+
const mercosulRegex =
2+
/^[a-z]{3}[0-9]{1}[a-z]{1}[0-9]{2}$|^[a-z]{3}[0-9]{2}[a-z]{1}[0-9]{1}$/i;
23

34
const brazilianLicensePlateRegex = /^[a-z]{3}-?[0-9]{4}$/i;
45

0 commit comments

Comments
 (0)