fix RoleColorEverywhere

This commit is contained in:
Vendicated 2026-05-08 16:07:31 +02:00
parent 3109ff102e
commit 7a75cd64d0
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -107,8 +107,8 @@ export default definePlugin({
find: 'tutorialId:"whos-online',
replacement: [
{
match: /(#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.+}\):null,).{0,100}?— ",\i\]\}\)\]/,
replace: (_, rest) => `${rest}$self.RoleGroupColor(arguments[0])]`
match: /(#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.+}\):null,).{0,100}?(?:—|\\u2014) ",\i\]\}\)\]/,
replace: "$1$self.RoleGroupColor(arguments[0])]"
},
],
predicate: () => settings.store.memberList
@ -117,7 +117,7 @@ export default definePlugin({
find: "#{intl::THREAD_BROWSER_PRIVATE}",
replacement: [
{
match: /children:\[\i," — ",\i\]/,
match: /children:\[\i," (?:—|\\u2014) ",\i\]/,
replace: "children:[$self.RoleGroupColor(arguments[0])]"
},
],