mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-21 02:21:40 +00:00
now we drop the trailing '/' in paths...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
004c854eb7
commit
816dc731c7
@ -104,6 +104,9 @@ module = {
|
|||||||
// NOTE: the last '>>' will be retained...
|
// NOTE: the last '>>' will be retained...
|
||||||
: res.push(e)
|
: res.push(e)
|
||||||
return res }, [])
|
return res }, [])
|
||||||
|
// clear the trailing '/'...
|
||||||
|
path.at(-1) == ''
|
||||||
|
&& path.pop()
|
||||||
/*/ XXX NORMCACHE...
|
/*/ XXX NORMCACHE...
|
||||||
var res = format == 'string' ?
|
var res = format == 'string' ?
|
||||||
// special case: root -> keep '/'
|
// special case: root -> keep '/'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user