decord/source/__polyfill/08xxx/module_8450.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

16 lines
340 B
JavaScript

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