From f660343b9d5d19148a2fe25af3388c2055295f33 Mon Sep 17 00:00:00 2001 From: Jasper Date: Mon, 25 Sep 2023 23:47:30 +0200 Subject: [PATCH] =?UTF-8?q?Update=20regex=20pattern=20to=20include=20?= =?UTF-8?q?=C3=86=C3=98=C3=85,=20apparently,=20=C3=86=20at=20least,=20is?= =?UTF-8?q?=20allowed=20in=20license=20plates=20->=20check=20"B=C3=86STET"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dmr/dmr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmr/dmr.py b/dmr/dmr.py index d0d0e4e..8b05c15 100644 --- a/dmr/dmr.py +++ b/dmr/dmr.py @@ -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: