🐛 fix bug in regex expression for priority tokens
This commit is contained in:
parent
4752e9d555
commit
bab3ef6ec0
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue