mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +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 {
|
try {
|
||||||
files.add(new PasteUtil.PasteFile("discord-config.yml",
|
files.add(new PasteUtil.PasteFile("discord-config.yml",
|
||||||
new String(Files.readAllBytes(essDiscord.getDataFolder().toPath().resolve("config.yml")), StandardCharsets.UTF_8)
|
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) {
|
} catch (IOException e) {
|
||||||
sender.sendMessage(tl("dumpErrorUpload", "discord-config.yml", e.getMessage()));
|
sender.sendMessage(tl("dumpErrorUpload", "discord-config.yml", e.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue