From a33a1268c30657fe812e29b3c4b2f54717b45b4e Mon Sep 17 00:00:00 2001 From: Phr33d0m Date: Wed, 26 Feb 2025 18:54:40 +0200 Subject: [PATCH] Fix broken astro project git clone (#1352) --- app/components/chat/GitCloneButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat/GitCloneButton.tsx b/app/components/chat/GitCloneButton.tsx index 9cd1ef77..28aa169d 100644 --- a/app/components/chat/GitCloneButton.tsx +++ b/app/components/chat/GitCloneButton.tsx @@ -70,7 +70,7 @@ export default function GitCloneButton({ importChat, className }: GitCloneButton // Skip binary files if ( content instanceof Uint8Array && - !filePath.match(/\.(txt|md|js|jsx|ts|tsx|json|html|css|scss|less|yml|yaml|xml|svg)$/i) + !filePath.match(/\.(txt|md|astro|mjs|js|jsx|ts|tsx|json|html|css|scss|less|yml|yaml|xml|svg)$/i) ) { skippedFiles.push(filePath); continue;