This commit is contained in:
Rhys Arkins 2025-01-01 01:10:18 +01:00 committed by GitHub
commit 4ae33982b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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), '')