From b5890205eeae38e5be1f4cdf4d48eed6da211afb Mon Sep 17 00:00:00 2001 From: frankpagan Date: Fri, 8 Mar 2024 17:54:52 -0500 Subject: [PATCH] fix: omit matches that do not match the if conditions --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 195b952..b938853 100644 --- a/src/index.js +++ b/src/index.js @@ -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) {