This commit is contained in:
ifer47 2026-07-04 17:49:59 -07:00 committed by GitHub
commit 1127b2ce31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -41,9 +41,11 @@ export async function createZip(files: File[]): Promise<Uint8Array> {
}
export function ignoreEntry(filename: string): boolean {
const segments = filename.split("/");
return (
filename.startsWith(".") ||
filename.includes("/__MACOSX/") ||
filename.endsWith("/")
filename.endsWith("/") ||
segments.some(
(segment) => segment === "__MACOSX" || segment.startsWith("."),
)
);
}