Regex fix for mailchimp template start and end tags (#22)
This commit is contained in:
@@ -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, '{{')
|
||||
|
||||
Reference in New Issue
Block a user