decord/source/__polyfill/08xxx/module_8329.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

16 lines
340 B
JavaScript

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