diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index 6ebbdf1c2..efcfe6770 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -108,8 +108,8 @@ export default definePlugin({ find: 'tutorialId:"whos-online', replacement: [ { - match: /,"aria-hidden":!0,children:\[.{0,200}— ",\i\]\}\)\]/, - replace: ',"aria-hidden":!0,children:[$self.RoleGroupColor(arguments[0])]' + match: /(#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.+}\):null,).{0,100}?— ",\i\]\}\)\]/, + replace: (_, rest) => `${rest}$self.RoleGroupColor(arguments[0])]` }, ], predicate: () => settings.store.memberList