sitegen/framework/lib/string.ts
2025-08-02 20:56:36 -04:00

3 lines
93 B
TypeScript

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