From 816dc731c72d28336959a85d2f1bc35534374561 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 3 Sep 2022 10:57:18 +0300 Subject: [PATCH] now we drop the trailing '/' in paths... Signed-off-by: Alex A. Naanou --- pwiki/path.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwiki/path.js b/pwiki/path.js index 5cc7bec..65991b3 100755 --- a/pwiki/path.js +++ b/pwiki/path.js @@ -104,6 +104,9 @@ module = { // NOTE: the last '>>' will be retained... : res.push(e) return res }, []) + // clear the trailing '/'... + path.at(-1) == '' + && path.pop() /*/ XXX NORMCACHE... var res = format == 'string' ? // special case: root -> keep '/'