From bcf2d846fcfdb2233a7fae8eb43fa425a285cc80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 11 Apr 2021 00:12:05 +0200 Subject: [PATCH] fix backlinks detection --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3e2676d..7f0271a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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())) }