Fix failing checks

This commit is contained in:
Butter Cat 2024-04-07 19:51:20 -04:00 committed by GitHub
parent ccfe7d0eeb
commit 99048c4683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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());