diff --git a/src/equicordplugins/fastDeleteChannels/index.tsx b/src/equicordplugins/fastDeleteChannels/index.tsx index 3d986edce..2a026500a 100644 --- a/src/equicordplugins/fastDeleteChannels/index.tsx +++ b/src/equicordplugins/fastDeleteChannels/index.tsx @@ -81,7 +81,7 @@ export default definePlugin({ { find: "UNREAD_IMPORTANT:", replacement: { - match: /\.name,{.{0,140}\.children.+?:null(?<=,channel:(\i).+?)/, + match: /\.Children\.count.+?:null(?<=,channel:(\i).+?)/, replace: "$&,$self.TrashIcon($1)" } }, diff --git a/src/equicordplugins/unreadBadgeCount/index.tsx b/src/equicordplugins/unreadBadgeCount/index.tsx index 2a49b4496..c28dd7139 100644 --- a/src/equicordplugins/unreadBadgeCount/index.tsx +++ b/src/equicordplugins/unreadBadgeCount/index.tsx @@ -41,7 +41,7 @@ export default definePlugin({ find: "UNREAD_IMPORTANT:", replacement: [ { - match: /.name,{.{0,140}\.children.+?:null/, + match: /\.Children\.count.+?:null(?<=,channel:(\i).+?)/, replace: "$&,$self.CountBadge({channel: arguments[0].channel})", }, ]