Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base
fix lint
Hugo Richardac1f67b27fc0
diff --git a/apps/chat/server/api/sources/ocr.post.ts b/apps/chat/server/api/sources/ocr.post.tsindex 1310a60..ce5f874 100644--- a/apps/chat/server/api/sources/ocr.post.ts+++ b/apps/chat/server/api/sources/ocr.post.ts@@ -51,7 +51,7 @@ function sanitizeRepo(repo: string): string | null {cleaned = cleaned.replace(/status:\s*\d+.*/i, '') // Remove "Status: 200 OK" etc.replace(/https?:\/\/.*/i, '') // Remove URLs- .replace(/[^a-z0-9_.\/-]/g, '') // Remove invalid characters+ .replace(/[^a-z0-9_./-]/g, '') // Remove invalid characters.replace(/\/+/g, '/') // Collapse multiple slashes.replace(/^\/|\/$/g, '') // Trim slashes