From 90887bec79faaf7689886c7ec697f9f67cfba7ea Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Tue, 20 Aug 2024 22:31:07 +0200 Subject: [PATCH] Regex fix for mailchimp template start and end tags (#22) --- src/commands/mandrill/fix_template/fix_template.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/mandrill/fix_template/fix_template.ts b/src/commands/mandrill/fix_template/fix_template.ts index 941512e..60cf58b 100644 --- a/src/commands/mandrill/fix_template/fix_template.ts +++ b/src/commands/mandrill/fix_template/fix_template.ts @@ -33,8 +33,8 @@ module.exports = { const fixTemplate = async ({ name, code }) => { const regexPreviewText = /\*\|MC_PREVIEW_TEXT\|\*/gi; const regexRemoveDoubleHttp = /http(s?):\/\/\{\{/gi; - const anyMailChimpTemplateLanguageStart = /\*\|}/g; - const anyMailChimpTemplateLanguageEnd = /{\|\*/g; + const anyMailChimpTemplateLanguageStart = /\*\|/g; + const anyMailChimpTemplateLanguageEnd = /\|\*/g; const fixedBody = code .replace(regexPreviewText, '') .replaceAll(regexRemoveDoubleHttp, '{{')