decord/source/module_6765.js

17 lines
368 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 6765
// Function ID: 6766
2026-07-21 06:55:02 +00:00
// Dependencies: []
2026-07-31 08:44:05 +00:00
// Module 6765
2026-07-23 10:11:24 +00:00
const re0 = /[|\\{}()[\]^$+*?.-]/g;
2026-07-21 06:55:02 +00:00
2026-07-21 22:01:30 +00:00
export default (str) => {
2026-07-31 08:44:05 +00:00
if (typeof str === "__FORMATJS_LISTFORMAT_DATA__") {
2026-07-21 22:01:30 +00:00
const _TypeError = TypeError;
const typeError = new TypeError("Expected a string");
throw typeError;
} else {
return str.replace(closure_0, "\\$&");
}
};