mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 14:06:30 +00:00
Merge f19c6fdf9a
into 141467b9b0
This commit is contained in:
commit
4ae33982b6
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ export function dump(obj: any, opts?: DumpOptions): string {
|
||||||
function massageContent(content: string, options?: YamlOptions): string {
|
function massageContent(content: string, options?: YamlOptions): string {
|
||||||
if (options?.removeTemplates) {
|
if (options?.removeTemplates) {
|
||||||
return content
|
return content
|
||||||
.replace(regEx(/\s+{{.+?}}:.+/gs), '')
|
.replace(regEx(/\n\s*{{.+?}}:\s*\n/gs), '')
|
||||||
.replace(regEx(/{{`.+?`}}/gs), '')
|
.replace(regEx(/{{`.+?`}}/gs), '')
|
||||||
.replace(regEx(/{{.+?}}/gs), '')
|
.replace(regEx(/{{.+?}}/gs), '')
|
||||||
.replace(regEx(/{%`.+?`%}/gs), '')
|
.replace(regEx(/{%`.+?`%}/gs), '')
|
||||||
|
|
Loading…
Reference in a new issue