Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
// Module ID: 8329
|
|
// Function ID: 8330
|
|
// Dependencies: []
|
|
|
|
// Module 8329
|
|
const re0 = /[|\\{}()[\]^$+*?.-]/g;
|
|
|
|
export default (str) => {
|
|
if (typeof str !== "string") {
|
|
const _TypeError = TypeError;
|
|
const typeError = new TypeError("Expected a string");
|
|
throw typeError;
|
|
} else {
|
|
return str.replace(re0, "\\$&");
|
|
}
|
|
};
|