function run(str, code) {
  return enabled
    ? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
    : str;
}
/**
 * Applies color and background based on color code and its associated text
 * @param str text to apply color settings to
 * @param code color code to apply
 */
Applies color and background based on color code and its associated text
@param str text to apply color settings to
@param code color code to apply
Applies color and background based on color code and its associated text @param str text to apply color settings to @param code color code to apply
function run(str, code) {
  return enabled
    ? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
    : str;
}
function run ( str , code ) { return enabled ? ` ${ code . open } ${ str . replace ( code . regexp , code . open ) } ${ code . close } ` : str ; }
Applies color and background based on color code and its associated text
 @param str text to apply color settings to
 @param code color code to apply
Applies color and background based on color code and its associated text @param str text to apply color settings to @param code color code to apply