/** * @fileoverview Interpolate keys from an object into a string with {{ }} markers. * @author Jed Fox */"use strict";//------------------------------------------------------------------------------// Public Interface//------------------------------------------------------------------------------module.exports=(text,data)=>{if(!data){returntext;}// Substitution content for any {{ }} markers.returntext.replace(/\{\{([^{}]+?)\}\}/gu,(fullMatch,termWithWhitespace)=>{constterm=termWithWhitespace.trim();if(termindata){returndata[term];}// Preserve old behavior: If parameter name not provided, don't replace it.returnfullMatch;});};