decord/source/__polyfill/12xxx/module_12948.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

10 lines
265 B
JavaScript

// Module ID: 12948
// Function ID: 12949
// Dependencies: []
// Exports: escapeStringForRegex
// Module 12948
export const escapeStringForRegex = function escapeStringForRegex(str) {
return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
};