export function getTemplateText ( runText , second ) { if ( runText ?. indexOf ( '{%s}' ) !== - 1 ) { return runText . replace ( /\{([^{]*?)%s(.*?)\}/g , second ?. toString ( ) ) ; } else { return runText ; } }