From b36c06b529629afc0c05068f115cafc1d71bf27c Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Tue, 28 Apr 2026 14:27:48 +0200 Subject: [PATCH] Fixed --- rss2bsky.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rss2bsky.py b/rss2bsky.py index b3321af..1247645 100644 --- a/rss2bsky.py +++ b/rss2bsky.py @@ -359,7 +359,8 @@ def is_html(text: str) -> bool: def strip_trailing_url_punctuation(url: str) -> str: if not url: return url - return re.sub(r"[\s…,\.,;:!?)\]"']+$", "", url.strip()) + # Fix the unterminated string literal issue + return re.sub(r"[\s…,\.;:!?)\]'\"]+$", "", url.strip()) def canonicalize_url(url: str):