From bab3ef6ec09dfda8254fb8c5facd8c5c5e9b5e95 Mon Sep 17 00:00:00 2001 From: Marc Koch Date: Tue, 19 Aug 2025 14:41:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20bug=20in=20regex=20express?= =?UTF-8?q?ion=20for=20priority=20tokens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clear_bookings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clear_bookings.py b/src/clear_bookings.py index 6422838..95a4b02 100644 --- a/src/clear_bookings.py +++ b/src/clear_bookings.py @@ -116,8 +116,8 @@ class DavEvent: uid = self.uid # Check if there is a token in the event description - token_pattern = r"\#[A-Z1-9]{12}\#" - match = re.search(token_pattern, description) + token_pattern = r"\#[A-Z0-9]{12}\#" + match = re.search(token_pattern, str(description)) if match: token = match.group() print(f"Priority token found in event description: {token}")