render media list

This commit is contained in:
Ren Amamiya
2026-04-09 18:08:19 +07:00
parent 72e3686f45
commit 2bc50f07c4
2 changed files with 55 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ impl MediaExtractor {
// Remove multiple consecutive spaces
let re = Regex::new(r"\s+").unwrap();
re.replace_all(text, " ").to_string()
re.replace_all(text, " ").trim().to_string()
}
/// Validates if a URL is a valid media URL