mirror of
https://github.com/flynx/pWiki.git
synced 2026-08-25 00:36:41 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
382c3f4350
commit
7786ddaeb6
@ -1371,6 +1371,7 @@ module.parser = {
|
|||||||
// get and run things...
|
// get and run things...
|
||||||
return Promise.awaitOrRun(
|
return Promise.awaitOrRun(
|
||||||
page.get(src).matched,
|
page.get(src).matched,
|
||||||
|
page.get(src).raw,
|
||||||
function(paths, texts){
|
function(paths, texts){
|
||||||
texts =
|
texts =
|
||||||
// special case: list page...
|
// special case: list page...
|
||||||
@ -1380,18 +1381,13 @@ module.parser = {
|
|||||||
: texts instanceof Array ?
|
: texts instanceof Array ?
|
||||||
texts
|
texts
|
||||||
: [texts]
|
: [texts]
|
||||||
|
|
||||||
return Promise.awaitOrRun(
|
return Promise.awaitOrRun(
|
||||||
// handle pages...
|
// handle pages...
|
||||||
Promise
|
Promise
|
||||||
.iter(
|
.iter(
|
||||||
that.joinBlocks(
|
Array
|
||||||
page,
|
.zip(paths, texts)
|
||||||
Array
|
.map(pageHandler))
|
||||||
.zip(paths, texts)
|
|
||||||
.map(pageHandler),
|
|
||||||
args.join,
|
|
||||||
state))
|
|
||||||
.flat()
|
.flat()
|
||||||
.sync(),
|
.sync(),
|
||||||
resultHandler ) }) }) })),
|
resultHandler ) }) }) })),
|
||||||
|
|||||||
@ -87,11 +87,13 @@ module.exports.P = {
|
|||||||
|
|
||||||
return res.length == 1 ?
|
return res.length == 1 ?
|
||||||
res[0]
|
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
|
: Promise
|
||||||
.iter(res)
|
.iter(res)
|
||||||
.sync() },
|
.sync() },
|
||||||
// res },
|
/*/
|
||||||
|
res },
|
||||||
|
//*/
|
||||||
|
|
||||||
// XXX should this return an arrya for a multi-match???
|
// XXX should this return an arrya for a multi-match???
|
||||||
get text(){
|
get text(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user