fix: hardcode instead of using a capturing group

This commit is contained in:
ryana mittens 2024-09-11 23:19:51 +08:00
parent cd347c361d
commit bcf9a030f6

View file

@ -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': '')"
}]
},
],