UNPKG

@sapphire/utilities

Version:
15 lines (12 loc) 420 B
'use strict'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // src/lib/regExpEsc.ts var REGEXPESC = /[-/\\^$*+?.()|[\]{}]/g; function regExpEsc(str) { return str.replace(REGEXPESC, "\\$&"); } __name(regExpEsc, "regExpEsc"); exports.regExpEsc = regExpEsc; //# sourceMappingURL=regExpEsc.cjs.map //# sourceMappingURL=regExpEsc.cjs.map