fix
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
JMARyA 2025-01-19 01:44:44 +01:00
parent c828c00352
commit b530ae4dc3
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -32,10 +32,14 @@ fn internalize_urls(input: &str, base: &str) -> String {
let re = regex::Regex::new(url_pattern).unwrap();
re.replace_all(input, |caps: &regex::Captures| {
if caps.get(1).map(|x| x.as_str()).unwrap_or_default() == "<" {
if caps.get(2).map(|x| x.as_str()).unwrap_or_default() == "<" {
return caps.get(0).unwrap().as_str().to_string();
}
if caps.get(0).unwrap().as_str() == " //" {
return " //".to_string();
}
let wrap = caps.get(1).map(|x| x.as_str()).unwrap_or_default();
if let Some(domain) = caps.get(3) {