From a6b8b59d5c2be3f8894e1287479d8546bc102339 Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 25 Oct 2023 19:03:11 -0400 Subject: [PATCH] fix: shikicodeblocks, betterroledot (#1895) --- src/plugins/betterRoleDot/index.ts | 1 + src/plugins/shikiCodeblocks.desktop/index.ts | 10 +++++----- src/utils/constants.ts | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/plugins/betterRoleDot/index.ts b/src/plugins/betterRoleDot/index.ts index ed121b9a..3886de3f 100644 --- a/src/plugins/betterRoleDot/index.ts +++ b/src/plugins/betterRoleDot/index.ts @@ -38,6 +38,7 @@ export default definePlugin({ { find: '"dot"===', all: true, + noWarn: true, predicate: () => Settings.plugins.BetterRoleDot.bothStyles, replacement: { match: /"(?:username|dot)"===\i(?!\.\i)/g, diff --git a/src/plugins/shikiCodeblocks.desktop/index.ts b/src/plugins/shikiCodeblocks.desktop/index.ts index 58e55b4e..12c8c858 100644 --- a/src/plugins/shikiCodeblocks.desktop/index.ts +++ b/src/plugins/shikiCodeblocks.desktop/index.ts @@ -37,12 +37,12 @@ export default definePlugin({ authors: [Devs.Vap], patches: [ { - find: "codeBlock:{react:function", + find: "codeBlock:{react(", replacement: { - match: /codeBlock:\{react:function\((\i),(\i),(\i)\)\{/, - replace: "$&return $self.renderHighlighter($1,$2,$3);", - }, - }, + match: /codeBlock:\{react\((\i),(\i),(\i)\)\{/, + replace: "$&return $self.renderHighlighter($1,$2,$3);" + } + } ], start: async () => { if (settings.store.useDevIcon !== DeviconSetting.Disabled) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 6395ddfb..aeadcdbf 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -325,7 +325,7 @@ export const Devs = /* #__PURE__*/ Object.freeze({ }, ImLvna: { name: "Luna <3", - id: 174200708818665472n + id: 799319081723232267n }, rad: { name: "rad",