mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-04-28 09:52:19 +00:00
whitelist vue and svelte files
This commit is contained in:
parent
53a674dc58
commit
be54fa0037
@ -70,7 +70,7 @@ export default function GitCloneButton({ importChat, className }: GitCloneButton
|
||||
// Skip binary files
|
||||
if (
|
||||
content instanceof Uint8Array &&
|
||||
!filePath.match(/\.(txt|md|astro|mjs|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|vue|svelte)$/i)
|
||||
) {
|
||||
skippedFiles.push(filePath);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user