fix backlinks detection

This commit is contained in:
Tomáš Mládek 2021-04-11 00:12:05 +02:00
parent cb5ecd2fff
commit bcf2d846fc

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