From bcf9a030f6d0a3c3b6b75c01396e6eef1e692cd4 Mon Sep 17 00:00:00 2001 From: Ryana May Que Date: Wed, 11 Sep 2024 23:19:51 +0800 Subject: [PATCH] fix: hardcode instead of using a capturing group --- src/plugins/blurNsfw/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index 15d6b8b9..6c945921 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -45,8 +45,8 @@ export default definePlugin({ { find: ".embedWrapper,embed", replacement: [{ - match: /\.container(?=.+?(this))/g, - replace: "$&+($1.props.channel.nsfw? ' vc-nsfw-img': '')" + match: /\.container(?=.+?this)/g, + replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')" }] }, ],