decord/source/__polyfill/08xxx/module_8419.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

16 lines
340 B
JavaScript

// Module ID: 8419
// Function ID: 8420
// Dependencies: []
// Module 8419
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, "\\$&");
}
};