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