"use strict";
const toString$1 = require("./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;
module.exports = escapeRegExp_1;
//# sourceMappingURL=escapeRegExp.js.map
