mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-05-07 05:34:40 +00:00
Merge pull request #1598 from mark-when/filetypes
fix: whitelist vue and svelte files
This commit is contained in:
commit
b3d753dcc9
@ -70,7 +70,7 @@ export default function GitCloneButton({ importChat, className }: GitCloneButton
|
|||||||
// Skip binary files
|
// Skip binary files
|
||||||
if (
|
if (
|
||||||
content instanceof Uint8Array &&
|
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);
|
skippedFiles.push(filePath);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user