"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;

function _default(object, search, replace) {
  return object.replace(new RegExp(search + "([^" + search + "]*)$"), replace + "$1");
}