Skip to content

Commit b589020

Browse files
committed
fix: omit matches that do not match the if conditions
1 parent b80be78 commit b589020

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ async function renderValue(node, data, placeholder, renderAs, renderedNode) {
625625
value = getRenderValue(node, data, match[1], renderAs)
626626
}
627627
} else {
628-
// Otherwise, retun original ouptut
629-
return output
628+
omitted[`<|${match[1]}|>`] = match[0]
630629
}
631630

632631
} catch (error) {

0 commit comments

Comments
 (0)