sitegen/framework/lib/string.ts

4 lines
93 B
TypeScript
Raw Permalink Normal View History

2025-07-07 20:58:02 -07:00
export function escapeRegExp(source: string) {
return source.replace(/[\$\\]/g, "\\$&");
}