mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 19:45:09 +00:00
AnonymiseFilenames: use hex alphabet to remove chance to generate bad words
This commit is contained in:
parent
9ef41602c5
commit
3caed057f6
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ const settings = definePluginSettings({
|
|||
randomisedLength: {
|
||||
description: "Random characters length",
|
||||
type: OptionType.NUMBER,
|
||||
default: 7,
|
||||
default: 10,
|
||||
disabled: () => settings.store.method !== Methods.Random,
|
||||
},
|
||||
consistent: {
|
||||
|
|
@ -123,7 +123,7 @@ export default definePlugin({
|
|||
const newFilename = (() => {
|
||||
switch (settings.store.method) {
|
||||
case Methods.Random:
|
||||
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
const chars = "ABCDEFabcdef0123456789";
|
||||
return Array.from(
|
||||
{ length: settings.store.randomisedLength },
|
||||
() => chars[Math.floor(Math.random() * chars.length)]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue