//#region src/core/regex.ts
/**
* Escape a string so it can be embedded safely as a literal inside a `RegExp`.
* Prevents both broken patterns and ReDoS/injection when interpolating
* field names, section headers, or other dynamic values into a regex.
*/
function escapeRegExp(value) {
	return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
//#endregion
export { escapeRegExp as t };

//# sourceMappingURL=regex-Jt5DatPi.js.map