Skip to content

Commit

Permalink
fix:format
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyFabrikapp committed Dec 16, 2024
1 parent cad2b6d commit 856e505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/commit.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "commit": "0ee373629789f01fb9f54f6747735b51a94a5562" }
{ "commit": "cad2b6d1f2b8405e2230277f929d59257fa68bd6" }
8 changes: 1 addition & 7 deletions app/components/chat/ImportFolderButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ export const ImportFolderButton: React.FC<ImportFolderButtonProps> = ({ classNam
const handleFileChange = async (e: React.ChangeEvent<HTMLInputElement>) => {
let allFiles = Array.from(e.target.files || []) as FileWithPath[];

// Get all .gitignore files in any folder
const gitignoreFiles = allFiles.filter((file) => file.webkitRelativePath.endsWith('.gitignore'));
const gitignorePatterns: string[] = [
'.git/**',
'.git/*',
'node_modules/**', // Example: also ignore node_modules
'.env*', // Example: ignore environment files
];
const gitignorePatterns: string[] = ['.git/**', '.git/*', 'node_modules/**', '.env*'];

// Process all .gitignore files
for (const gitignoreFile of gitignoreFiles) {
Expand Down

0 comments on commit 856e505

Please sign in to comment.