mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2026-06-19 13:22:37 +02:00
This commit is contained in:
@@ -62,7 +62,7 @@ def ntfy_send(dispatch_uuid, user_topic, title, message, link,
|
|||||||
# check message for links #
|
# check message for links #
|
||||||
if not link:
|
if not link:
|
||||||
pattern = r"https:\/\/[^\s]+"
|
pattern = r"https:\/\/[^\s]+"
|
||||||
match = re.search(pattern, text)
|
match = re.search(pattern, message)
|
||||||
if match:
|
if match:
|
||||||
link = match.group(0)
|
link = match.group(0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user