mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-11-04 19:15:57 +00:00
Fix Discord token regex censor pattern (#4563)
Discord changed their token format again
This commit is contained in:
parent
ef8bcc8bc4
commit
a7a1fcd98c
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ public class Commandessentials extends EssentialsCommand {
|
|||
try {
|
||||
files.add(new PasteUtil.PasteFile("discord-config.yml",
|
||||
new String(Files.readAllBytes(essDiscord.getDataFolder().toPath().resolve("config.yml")), StandardCharsets.UTF_8)
|
||||
.replaceAll("[MN][A-Za-z\\d]{23}\\.[\\w-]{6}\\.[\\w-]{27}", "<censored token>")));
|
||||
.replaceAll("[A-Za-z\\d]{24}\\.[\\w-]{6}\\.[\\w-]{27}", "<censored token>")));
|
||||
} catch (IOException e) {
|
||||
sender.sendMessage(tl("dumpErrorUpload", "discord-config.yml", e.getMessage()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue