diff --git a/lib/locales/pt-BR.yml b/lib/locales/pt-BR.yml index 553cf7162a..8bad169f08 100644 --- a/lib/locales/pt-BR.yml +++ b/lib/locales/pt-BR.yml @@ -670,7 +670,7 @@ pt-BR: measurement_sizes: ["Pitada", "1/4", "1/3", "1/2", "1", "2", "3"] vehicle: - license_plate: ['???-####', '???#?##', '???##?#'] + license_plate: '???-####' license_plate_by_state: AC: ["MZ[N-Z]-####", "NA[A-G]-####", "NX[R-T]-####", "OVG-####", "OXP-####", "QL[U-Z]-####"] AL: ["MU?-####", "MV[A-K]-####", "NL[V-Z]-####", "NM[A-O]-####", "OH[B-K]-####", "OR[D-M]-####", "OXN-####", "QL[A-M]-####"] diff --git a/test/test_pt_br_locale.rb b/test/test_pt_br_locale.rb index 29544374ea..b300698435 100644 --- a/test/test_pt_br_locale.rb +++ b/test/test_pt_br_locale.rb @@ -129,7 +129,7 @@ def test_pt_br_university_methods def test_pt_br_vehicle_methods assert Faker::Vehicle.license_plate.is_a? String - assert Faker::Vehicle.license_plate.match(/(^[A-Z]{3}\-[0-9]{4})|([A-Z]{3}[0-9]{1}[A-Z][0-9]{2})|([A-Z]{3}[0-9]{2}[A-Z][0-9])/) + assert Faker::Vehicle.license_plate.match(/^[A-Z]{3}\-[0-9]{4}/) assert Faker::Vehicle.license_plate(state_abbreviation: 'RJ').is_a? String assert Faker::Vehicle.license_plate(state_abbreviation: 'RJ').match(/^[A-Z]{3}\-[0-9]{4}/)