Skip to content

Commit

Permalink
Simplify regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
woller committed Oct 21, 2024
1 parent d124ca4 commit c499b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_da_dk_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ def test_da_dk_counrty_code
end

def test_da_dk_license_plate
assert_match(/^(O[A-HJ-NPR-Z](?![BHBUCCCDDKDUEUKZMUYPSSUDUNVC])|[A-HJ-NPR-Z]{2})(\d{2,5})$/, Faker::Vehicle.license_plate)
assert_match(/[A-Z]{2}[0-9]{5}/, Faker::Vehicle.license_plate)
end
end

0 comments on commit c499b8d

Please sign in to comment.