mirror of https://github.com/VERT-sh/VERT.git
Merge 5f38a7b827 into 916e67357d
This commit is contained in:
commit
03116a716f
|
|
@ -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("."),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue