mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-04 21:47:40 +03:00
Actually fix checks this time
This commit is contained in:
parent
99048c4683
commit
89140c8cf7
1 changed files with 2 additions and 2 deletions
|
@ -895,7 +895,7 @@ pub fn rewrite_urls(input_text: &str) -> String {
|
|||
|
||||
// Rewrite external media previews to Redlib
|
||||
loop {
|
||||
if REDDIT_PREVIEW_REGEX.find(&text1).is_none() {
|
||||
if REDDIT_PREVIEW_REGEX.find(&text1).is_none() {
|
||||
return text1;
|
||||
} else {
|
||||
let formatted_url = format_url(REDDIT_PREVIEW_REGEX.find(&text1).map(|x| x.as_str()).unwrap_or_default());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue