more eslint

This commit is contained in:
Vendicated 2022-10-20 11:58:20 +02:00
parent 350e7b0a6a
commit 36f4478a4f
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
13 changed files with 39 additions and 19 deletions

View file

@ -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";