diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-20 11:58:20 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-20 11:58:20 +0200 |
commit | 36f4478a4f10cb1e8f7b33ebb5d097dd028b9399 (patch) | |
tree | b6c9268cf4c25017e8244065e0ffd1416a809044 /src/plugins/anonymiseFileNames.ts | |
parent | 350e7b0a6a2f19728a1839dc7db85717af3399d8 (diff) | |
download | Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.tar.gz Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.tar.bz2 Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.zip |
more eslint
Diffstat (limited to 'src/plugins/anonymiseFileNames.ts')
-rw-r--r-- | src/plugins/anonymiseFileNames.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/anonymiseFileNames.ts b/src/plugins/anonymiseFileNames.ts index 962b966..4fa60db 100644 --- a/src/plugins/anonymiseFileNames.ts +++ b/src/plugins/anonymiseFileNames.ts @@ -49,7 +49,7 @@ export default definePlugin({ anonymise(file: string) { let name = "image"; - const ext = file.match(/\..+$/g) ?? ""; + const ext = file.match(/\..+$/g)?.[0] ?? ""; switch (Settings.plugins.AnonymiseFileNames.method) { case Methods.Random: const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; |