Urara-Blog/node_modules/.pnpm-store/v3/files/b5/0cf5a1c8375d7c74e26705197e72a107b0514b8ab9f06ad32130fb7dbe8d223f40b81b77afa12fccebceb6e06dd1e49519b1d192cc2757db06da02f4584b20
2022-08-14 01:14:53 +08:00

16 lines
No EOL
535 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeRegExp = void 0;
/**
* Lodash <https://lodash.com/>
* Released under MIT license <https://lodash.com/license>
*/
const reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
const reHasRegExpChar = RegExp(reRegExpChar.source);
function escapeRegExp(string = '') {
return string && reHasRegExpChar.test(string)
? string.replace(reRegExpChar, '\\$&')
: string;
}
exports.escapeRegExp = escapeRegExp;
//# sourceMappingURL=escapeRegExp.js.map