Skip to content

Commit

Permalink
Merge pull request #133 from rdkcentral/fix-macro-not-replace-provider
Browse files Browse the repository at this point in the history
fix: Macro not replaced for provider docs
  • Loading branch information
jlacivita authored Sep 14, 2023
2 parents 53911c2 + ef1aecd commit ff9293c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/macrofier/engine.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, '')
Expand Down

0 comments on commit ff9293c

Please sign in to comment.