From ef1aecd0092a8652bc7b936604f9478b7b55df27 Mon Sep 17 00:00:00 2001 From: Kevin Pearson Date: Tue, 12 Sep 2023 10:24:26 -0700 Subject: [PATCH] fix: Macro not replaced for provider docs --- src/macrofier/engine.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/macrofier/engine.mjs b/src/macrofier/engine.mjs index d0535d00..73a805fd 100644 --- a/src/macrofier/engine.mjs +++ b/src/macrofier/engine.mjs @@ -1512,6 +1512,8 @@ function insertProviderInterfaceMacros(template, capability, moduleJson = {}, te } } methodBlock = lines.join('\n') + methodBlock = methodBlock.replace(/\$\{if\.provider\.params\}/gms, '') + methodBlock = methodBlock.replace(/\$\{end\.if\.provider\.params\}/gms, '') } else { methodBlock = methodBlock.replace(/\$\{if\.provider\.params\}.*?\$\{end\.if\.provider\.params\}/gms, '')