indent fuck brain not working

This commit is contained in:
ayaka 2024-04-04 23:01:12 +13:00
parent d49d32fbc6
commit 992257a8b1

View File

@ -883,7 +883,7 @@ pub fn rewrite_urls(input_text: &str) -> String {
let text1 = let text1 =
// Rewrite Reddit links to Redlib // Rewrite Reddit links to Redlib
REDDIT_REGEX.replace_all(input_text, r#"href="/"#) REDDIT_REGEX.replace_all(input_text, r#"href="/"#)
.to_string()F .to_string()
.replace("a href=\"https://preview.redd.it", "img src=\"https://preview.redd.it"); .replace("a href=\"https://preview.redd.it", "img src=\"https://preview.redd.it");
let text1 = REDDIT_EMOJI_REGEX let text1 = REDDIT_EMOJI_REGEX
.replace_all(&text1, format_url(REDDIT_EMOJI_REGEX.find(&text1).map(|x| x.as_str()).unwrap_or_default())) .replace_all(&text1, format_url(REDDIT_EMOJI_REGEX.find(&text1).map(|x| x.as_str()).unwrap_or_default()))