2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 4092
|
|
|
|
|
// Function ID: 4093
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: escapeRegExp
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [762]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 4092 (escapeRegExp)
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp = /[\\^$.*+?()[\]{}|]/g;
|
|
|
|
|
let closure_3 = RegExp(tmp.source);
|
|
|
|
|
|
|
|
|
|
export default function escapeRegExp(arg0) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const str = require(762) /* toString */(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let replaced = str;
|
|
|
|
|
if (str) {
|
|
|
|
|
replaced = str;
|
|
|
|
|
if (regex.test(str)) {
|
2026-07-23 10:11:24 +00:00
|
|
|
replaced = str.replace(closure_2, "\\$&");
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return replaced;
|
|
|
|
|
};
|