Skip to content

Commit

Permalink
Removed old code.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdobeLinhart committed Sep 19, 2024
1 parent 07e448d commit 52c00aa
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,22 +148,6 @@ const createFrag = (el, action, content, manifestId, targetManifestId) => {
return frag;
};

export const checkCustomPlaceholders = (content) => {
let newContent = content;

const config = getConfig();
const regex = /{{(.*?)}}/g;

newContent = newContent.replace(regex, (match, prop) => {
if (Object.prototype.hasOwnProperty.call(config.placeholders, prop)) {
return config.placeholders[prop];
}
return match;
});

return newContent;
};

export function replacePlaceholders(value, placeholders) {
let val = value;
const matches = val.match(/{{(.*?)}}/g);
Expand Down

0 comments on commit 52c00aa

Please sign in to comment.