fix backlinks detection

master
Tomáš Mládek 2021-04-11 00:12:05 +02:00
parent cb5ecd2fff
commit bcf2d846fc
1 changed files with 1 additions and 1 deletions

View File

@ -452,5 +452,5 @@ fn preprocess_markdown(string: String) -> String {
fn normalize_name(filename: &str) -> String {
let decoded = percent_decode_str(filename).decode_utf8_lossy();
let result = decoded.strip_suffix(".md");
String::from(result.unwrap_or(filename))
String::from(result.unwrap_or(decoded.as_ref()))
}