export const queryRegex = /()(.+?)()/gs; export function whiteOutQueries(text: string): string { return text.replaceAll(queryRegex, (match) => new Array(match.length + 1).join(" ") ); }