author CaMnter
  param content param target param expect export function replaceLastString ( content , target , expect ) { if ( ! content || ! target || ! expect ) { return content ; } const prefix = content . substring ( 0 , content . lastIndexOf ( target ) ) ; if ( ! prefix ) { return content ; } return `${ prefix }${ expect }` ; }