Fixed
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user