sitegen/framework/lib/string.ts

4 lines
96 B
TypeScript
Raw Normal View History

2025-06-09 21:13:51 -07:00
export function escapeRegExp(source: string) {
return source.replace(/[\$\\]/g, "\\$&");
}