mirror of
https://github.com/ryanamay/Vencord.git
synced 2024-09-20 00:50:34 +00:00
BlurNsfx: improve regex matching
This commit is contained in:
parent
93e13858de
commit
dc68e23a64
1 changed files with 2 additions and 2 deletions
|
@ -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': '')"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue