BlurNsfx: improve regex matching

This commit is contained in:
ryana mittens 2024-09-11 22:36:06 +08:00
parent 93e13858de
commit dc68e23a64

View file

@ -45,8 +45,8 @@ export default definePlugin({
{ {
find: ".embedWrapper,embed", find: ".embedWrapper,embed",
replacement: [{ replacement: [{
match: /(?<=channel:\s*(n)).*?\.container/g, match: /\.container(?=.+?a&&(this))/g,
replace: "$&+($1.nsfw?' vc-nsfw-img':'')" replace: "$&+($1.props.channel.nsfw? ' vc-nsfw-img': '')"
}] }]
}, },
], ],