From 4bb0db506682bf03b66366e70ae249979b95f695 Mon Sep 17 00:00:00 2001 From: EdVraz <88881326+EdVraz@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:21:10 +0100 Subject: [PATCH] fix anonymiseFileNames (#2125) --- src/plugins/anonymiseFileNames/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/anonymiseFileNames/index.tsx b/src/plugins/anonymiseFileNames/index.tsx index 845aa756..0382b65c 100644 --- a/src/plugins/anonymiseFileNames/index.tsx +++ b/src/plugins/anonymiseFileNames/index.tsx @@ -81,7 +81,7 @@ export default definePlugin({ { find: ".Messages.ATTACHMENT_UTILITIES_SPOILER", replacement: { - match: /(?<=children:\[)(?=.{10,80}tooltip:\i\.\i\.Messages\.ATTACHMENT_UTILITIES_SPOILER)/, + match: /(?<=children:\[)(?=.{10,80}tooltip:.{0,100}\i\.\i\.Messages\.ATTACHMENT_UTILITIES_SPOILER)/, replace: "arguments[0].canEdit!==false?$self.renderIcon(arguments[0]):null," }, },