diff --git a/src/plugins/showAllMessageButtons.ts b/src/plugins/showAllMessageButtons.ts index 32e8ee55..da0d3c6b 100644 --- a/src/plugins/showAllMessageButtons.ts +++ b/src/plugins/showAllMessageButtons.ts @@ -28,8 +28,8 @@ export default definePlugin({ { find: ".Messages.MESSAGE_UTILITIES_A11Y_LABEL", replacement: { - // isExpanded: V, (?<=,V = shiftKeyDown && !H...;) - match: /isExpanded:(\i),(?<=,\1=\i&&(!.+);.+?)/, + // isExpanded: V, (?<=,V = shiftKeyDown && !H...,|;) + match: /isExpanded:(\i),(?<=,\1=\i&&(?=(!.+?)[,;]).+?)/, replace: "isExpanded:$2," } }