From bced15ffb1f7bc0e040a338e6e1e2a64446d6ed0 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 28 Apr 2026 09:26:03 -0400 Subject: [PATCH] SHC: Fix Patch --- src/plugins/showHiddenChannels/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 2ffc26ce6..9d89d602e 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -169,8 +169,8 @@ export default definePlugin({ predicate: () => settings.store.showMode === ShowMode.LockIcon, replacement: { // Lock Icon - match: /(?=switch\((\i)\.type\).{0,30}\.GUILD_ANNOUNCEMENT.{0,70}\(0,\i\.\i\))/, - replace: (_, channel) => `if($self.isHiddenChannel(${channel}))return $self.LockIcon;` + match: /(?<=(\i)\.isNSFW\(\);)switch\(\i\.type\)/, + replace: (_, channel) => `if($self.isHiddenChannel(${channel}))return $self.LockIcon;${_}` } }, {