[formatter] exclude '<>\' from '!R' URLs (#8180)

This commit is contained in:
Mike Fährmann
2025-09-11 08:25:23 +02:00
parent 340c6469a9
commit bcf4d579b0
2 changed files with 4 additions and 2 deletions

View File

@@ -565,7 +565,7 @@ _CONVERSIONS = {
"U": text.unescape,
"H": lambda s: text.unescape(text.remove_html(s)),
"g": text.slugify,
"R": text.re(r"https?://[^\s\"']+").findall,
"R": text.re(r"https?://[^\s\"'<>\\]+").findall,
"W": text.sanitize_whitespace,
"S": util.to_string,
"s": str,