[formatter] add 'R' conversion - extract URLs (#8125)

This commit is contained in:
Mike Fährmann
2025-08-26 16:44:22 +02:00
parent a953d3d316
commit 9309204d9b
3 changed files with 21 additions and 6 deletions

View File

@@ -565,6 +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,
"W": text.sanitize_whitespace,
"S": util.to_string,
"s": str,