import toString_1 from "./toString.js";
var toString = toString_1;
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source);
function escapeRegExp(string) {
  string = toString(string);
  return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
}
var escapeRegExp_1 = escapeRegExp;
export {
  escapeRegExp_1 as default
};
//# sourceMappingURL=escapeRegExp.js.map
