minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-07-05 12:43:12 +03:00
parent 382c3f4350
commit 7786ddaeb6
2 changed files with 8 additions and 10 deletions

View File

@ -1371,6 +1371,7 @@ module.parser = {
// get and run things...
return Promise.awaitOrRun(
page.get(src).matched,
page.get(src).raw,
function(paths, texts){
texts =
// special case: list page...
@ -1380,18 +1381,13 @@ module.parser = {
: texts instanceof Array ?
texts
: [texts]
return Promise.awaitOrRun(
// handle pages...
Promise
.iter(
that.joinBlocks(
page,
Array
.zip(paths, texts)
.map(pageHandler),
args.join,
state))
Array
.zip(paths, texts)
.map(pageHandler))
.flat()
.sync(),
resultHandler ) }) }) })),

View File

@ -87,11 +87,13 @@ module.exports.P = {
return res.length == 1 ?
res[0]
// if at least one page is a promise wait for all...
/*/ if at least one page is a promise wait for all...
: Promise
.iter(res)
.sync() },
// res },
/*/
res },
//*/
// XXX should this return an arrya for a multi-match???
get text(){