From 74c3930e0a5ed264f330bc32c27116ead1063c5d Mon Sep 17 00:00:00 2001 From: Ven Date: Thu, 6 Oct 2022 00:42:58 +0200 Subject: add eslint config (#53) * eslint * workflow * lint main --- src/plugins/randomiseFileNames.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/randomiseFileNames.ts') diff --git a/src/plugins/randomiseFileNames.ts b/src/plugins/randomiseFileNames.ts index 3826711..02166bf 100644 --- a/src/plugins/randomiseFileNames.ts +++ b/src/plugins/randomiseFileNames.ts @@ -23,6 +23,6 @@ export default definePlugin({ { length: 7 }, () => chars[Math.floor(Math.random() * chars.length)] ).join(""); - return rand + (file.lastIndexOf(".") > -1 ? file.slice(file.lastIndexOf(".")) : "") + return rand + (file.lastIndexOf(".") > -1 ? file.slice(file.lastIndexOf(".")) : ""); }, }); -- cgit