bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-28 10:33:47 +03:00
parent f94aef1360
commit aecc0b6cac
2 changed files with 7 additions and 2 deletions

View File

@ -747,7 +747,7 @@ object.Constructor('Page', BasePage, {
seen.has(full) ? seen.has(full) ?
'direct' 'direct'
: 'depth-limit' : 'depth-limit'
} recursion detected:`, seen) } recursion detected:`, full, seen)
yield page.get(page.RECURSION_ERROR).parse() yield page.get(page.RECURSION_ERROR).parse()
continue } continue }
// have the 'recursive' arg... // have the 'recursive' arg...

View File

@ -110,6 +110,7 @@ module.BaseStore = {
// local paths... // local paths...
__paths: cached('paths', async function(){ __paths: cached('paths', async function(){
return this.__paths__() }), return this.__paths__() }),
// NOTE: this produces an unsorted list...
// XXX should this also be cached??? // XXX should this also be cached???
paths: async function(local=false){ paths: async function(local=false){
return this.__paths() return this.__paths()
@ -288,7 +289,11 @@ module.BaseStore = {
m m
&& (!strict && (!strict
|| m[0] == p) || m[0] == p)
&& res.add(m[0]) && res.add(
// normalize the path elements...
m[0][0] == '/' ?
m[0].slice(1)
: m[0])
return res }, new Set())] return res }, new Set())]
.sortAs(order) } .sortAs(order) }
// direct search... // direct search...