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 '/'