now we drop the trailing '/' in paths...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-09-03 10:57:18 +03:00
parent 004c854eb7
commit 816dc731c7

View File

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