Files
memecoin-botV2/.pnpm-store/v10/files/88/d47e2e63b4b95f8d92acc09355f1b25811e8490043c388dbb86bc2a24731542cce45e182b49282fb1f761877bb6a594e60f61caaadf841295395ecee44d0bc

15 lines
467 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeRegExp = escapeRegExp;
/**
* 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.replaceAll(reRegExpChar, '\\$&')
: string;
}