Skip to content

Commit

Permalink
fix(utils/yaml): Remove jinja2 block delimiters from YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Jan 16, 2024
1 parent 5440aab commit 5664575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function massageContent(content: string, options?: YamlOptions): string {
if (options?.removeTemplates) {
return content
.replace(regEx(/{{`.+?`}}/gs), '')
.replace(regEx(/{{.+?}}/g), '');
.replace(regEx(/{{.+?}}/g), '').
.replace(regEx(/{%`.+?`%}/gs), '')
.replace(regEx(/{%.+?%}/g), '');
}

return content;
Expand Down

0 comments on commit 5664575

Please sign in to comment.