Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-05-24 11:01:51 +03:00
parent 4db50f0c25
commit 8ce0445005

View File

@ -161,7 +161,7 @@ module.path = {
//
// NOTE: if seen is given (when called recursively) this will not
// search for .ALTERNATIVE_PAGES...
// XXX should we normalize input '' to '/' or return it as-is???
// XXX should we search for each path element or just the last one (current)???
// XXX should we keep the trailing '/'???
paths: function*(path='/', seen){
var alt_pages = !seen