Actually fix checks this time

This commit is contained in:
Butter Cat 2024-04-07 19:59:54 -04:00
parent 99048c4683
commit 89140c8cf7
No known key found for this signature in database
GPG Key ID: FF37BE4FDDB74419

View File

@ -895,7 +895,7 @@ pub fn rewrite_urls(input_text: &str) -> String {
// Rewrite external media previews to Redlib // Rewrite external media previews to Redlib
loop { loop {
if REDDIT_PREVIEW_REGEX.find(&text1).is_none() { if REDDIT_PREVIEW_REGEX.find(&text1).is_none() {
return text1; return text1;
} else { } else {
let formatted_url = format_url(REDDIT_PREVIEW_REGEX.find(&text1).map(|x| x.as_str()).unwrap_or_default()); let formatted_url = format_url(REDDIT_PREVIEW_REGEX.find(&text1).map(|x| x.as_str()).unwrap_or_default());