Merge branch 'main' of github.com:Photowall/pwcli

This commit is contained in:
Arwid Thornström
2024-10-02 11:02:01 +02:00
2 changed files with 63 additions and 8 deletions
@@ -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, '{{')