Skip to content

Commit

Permalink
Update regex pattern to include ÆØÅ, apparently, Æ at least, is allow…
Browse files Browse the repository at this point in the history
…ed in license plates -> check "BÆSTET"
  • Loading branch information
j4asper committed Sep 25, 2023
1 parent 8246185 commit f660343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmr/dmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def validate_license_plate(cls, license_plate: str) -> bool:
bool: Returns True if the given license plate could be a license plate, or False if not.
"""

match = search(r"^[A-Z0-9]{2,7}$", license_plate.upper())
match = search(r"^[A-ZÆØÅ0-9]{2,7}$", license_plate.upper())
if match:
return True
else:
Expand Down

0 comments on commit f660343

Please sign in to comment.