Added Semicolon to URL-Regex, so Youtube-Links with List-Index are properly shown

This commit is contained in:
2025-12-22 23:53:35 +01:00
parent 3d9eae89de
commit 6f6d05fe31
+1 -1
View File
@@ -28,7 +28,7 @@ def content_filter(value):
value = html.escape(value)
# Regulärer Ausdruck, um URLs zu finden
url_pattern = re.compile(
r'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)'
r'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:;%_\+.~#?&//=]*)'
)
# Ersetze jede gefundene URL durch einen <a>-Tag