8 lines
217 B
JavaScript
8 lines
217 B
JavaScript
// Metro module 1525 (f1526).
|
|
module.exports = (a0) => {
|
|
if (typeof a0 !== "string") {
|
|
throw new TypeError("Expected a string");
|
|
}
|
|
return a0.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
};
|