decord/source/__polyfill/01xxx/module_1546.js
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

15 lines
345 B
JavaScript

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