Skip to content

Commit

Permalink
fix: omit matches that do not match the if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Mar 8, 2024
1 parent b80be78 commit b589020
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,7 @@ async function renderValue(node, data, placeholder, renderAs, renderedNode) {
value = getRenderValue(node, data, match[1], renderAs)
}
} else {
// Otherwise, retun original ouptut
return output
omitted[`<|${match[1]}|>`] = match[0]
}

} catch (error) {
Expand Down

0 comments on commit b589020

Please sign in to comment.