diff --git a/src/plugins/alwaysExpandRoles/index.ts b/src/plugins/alwaysExpandRoles/index.ts index a052883d3..e255b48b4 100644 --- a/src/plugins/alwaysExpandRoles/index.ts +++ b/src/plugins/alwaysExpandRoles/index.ts @@ -52,8 +52,8 @@ export default definePlugin({ replace: "false" }, { - match: /\i\.length<\i\.length/, - replace: "false", + match: /return \i\.length<\i\.length/, + replace: "return false", predicate: () => settings.store.hideArrow } ] diff --git a/src/plugins/noMosaic/index.ts b/src/plugins/noMosaic/index.ts index b5fffba00..af2d2e049 100644 --- a/src/plugins/noMosaic/index.ts +++ b/src/plugins/noMosaic/index.ts @@ -30,8 +30,8 @@ export default definePlugin({ { find: '"PLAINTEXT_PREVIEW":"OTHER"', replacement: { - match: /"IMAGE"===\i\|\|"VIDEO"===\i\|\|"CLIP"===\i/, - replace: "false" + match: /return"IMAGE"===\i\|\|"VIDEO"===\i\|\|"CLIP"===\i/, + replace: "return false" } }, {