sitegen/framework/lib/string.ts
2025-07-07 20:58:02 -07:00

3 lines
93 B
TypeScript

export function escapeRegExp(source: string) {
return source.replace(/[\$\\]/g, "\\$&");
}