From f8298e793022e1d59f774f1b45092bb5c1b9faff Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sat, 23 Dec 2023 23:02:08 -0600 Subject: [PATCH] fix file path characters bug --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 50c143c..9a126a5 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -95,8 +95,8 @@ export function toSlug(filePath) { if (isFile && isMarkdownFolder) { return filePath.replace(markdownFolder, '') .replaceAll('/', '_') - .replaceAll(' ', '%') - .replaceAll('&', '+') + .replaceAll(' ', '+') + .replaceAll('&', '-') .replace('.md', '') } else { //TODO handle this properly