From 4c93757b4a302e3f3b43d02ef04809c5dd7745ee Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 25 May 2022 01:15:05 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- pwiki2.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pwiki2.js b/pwiki2.js index 33d2705..398fab4 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -911,8 +911,13 @@ object.Constructor('BasePage', { // XXX should this be an iterator??? each: function(path){ var that = this + path = path ? + module.path.relative(this.path, path) + : this.path //var paths = this.match(path) - var paths = this.resolve(path) + var paths = path.includes('*') ? + this.resolve(path) + : path paths = paths instanceof Array ? paths : [paths] @@ -1978,6 +1983,7 @@ object.Constructor('Page', BasePage, { // apply macro text... return pages .map(function(page, i){ + console.log('---', page.path) return [ ...that.__parser__.expand(page, text, state), ...((join_block && i < pages.length-1) ?