diff options
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"; |