decord/source/module_7543.js

17 lines
351 B
JavaScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 7543
// Function ID: 60398
2026-07-20 16:05:17 +00:00
// Dependencies: []
2026-07-21 06:55:02 +00:00
// Module 7543
2026-07-20 16:05:17 +00:00
let closure_0 = /[|\\{}()[\]^$+*?.-]/g;
export default (str) => {
if ("string" !== typeof str) {
const _TypeError = TypeError;
const typeError = new TypeError("Expected a string");
throw typeError;
} else {
return str.replace(closure_0, "\\$&");
}
};