1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.escapeRegExp = void 0;
|
4 | /**
|
5 | * Lodash <https://lodash.com/>
|
6 | * Released under MIT license <https://lodash.com/license>
|
7 | */
|
8 | const reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
9 | const reHasRegExpChar = RegExp(reRegExpChar.source);
|
10 | function escapeRegExp(string = '') {
|
11 | return string && reHasRegExpChar.test(string)
|
12 | ? string.replace(reRegExpChar, '\\$&')
|
13 | : string;
|
14 | }
|
15 | exports.escapeRegExp = escapeRegExp;
|
16 | //# sourceMappingURL=escapeRegExp.js.map |
\ | No newline at end of file |