monkey-front-core 0.0.290 → 0.0.291

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -289,6 +289,13 @@ class MonkeyEcxUtils {
289
289
  const initialPath = window.location.origin;
290
290
  return (initialPath || '') === frontend;
291
291
  }
292
+ static replaceVariables(data, obj) {
293
+ let handled = data;
294
+ Object.entries(obj).forEach(([key, value]) => {
295
+ handled = handled.replace(new RegExp(`{${key}}`, 'g'), `${value}`);
296
+ });
297
+ return handled;
298
+ }
292
299
  }
293
300
 
294
301
  const moment$5 = moment_;