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):