Added Semicolon to URL-Regex, so Youtube-Links with List-Index are properly shown
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user