This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-28 21:17:52 +01:00
parent 3e04645688
commit 0dfd28c9ce

View File

@@ -44,7 +44,9 @@ export const originalCh = createClient({
});
const cleanQuery = (query?: string) =>
query ? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim() : undefined;
typeof query === 'string'
? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim()
: undefined;
export const ch = new Proxy(originalCh, {
get(target, property, receiver) {