// Module ID: 1501 // Function ID: 17315 // Dependencies: [] // Module 1501 export default (str) => { if ("string" !== typeof str) { const _TypeError = TypeError; const typeError = new TypeError("Expected a string"); throw typeError; } else { return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"); } };