2 lines
162 B
JavaScript
2 lines
162 B
JavaScript
|
|
function r(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}export{r as e};
|