From 8eca3d5ee5650a0582142ea1ecea7fc2c6271b7a Mon Sep 17 00:00:00 2001 From: nin0 Date: Fri, 1 Nov 2024 21:33:32 -0400 Subject: [PATCH] the horrors --- native.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/native.ts b/native.ts index 3fe3839..210f5cf 100644 --- a/native.ts +++ b/native.ts @@ -41,6 +41,7 @@ export async function getPluginMeta(_, path: string): Promise { } export function deleteFolder(_, path: string) { + if(path.match(/\.\./g).length > 1) return; rmSync(path, { recursive: true, force: true }); }