sitegen/framework/lib/string.ts
2025-06-09 21:13:51 -07:00

3 lines
96 B
TypeScript

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