aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/revealAllSpoilers.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-08 00:11:59 -0300
committerGitHub <noreply@github.com>2023-03-08 00:11:59 -0300
commit40395d562aeadaeaa88c5bc106797ea5a4ee51e4 (patch)
treef5e96be8b32a670bcd5fe86d41ef5c47c6ee3b44 /src/plugins/revealAllSpoilers.ts
parent7322c3af047489e122b59b01825ba5473dc96a62 (diff)
downloadVencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.tar.gz
Vencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.tar.bz2
Vencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.zip
Improvements for patches and misc stuff (#582)
Diffstat (limited to 'src/plugins/revealAllSpoilers.ts')
-rw-r--r--src/plugins/revealAllSpoilers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/revealAllSpoilers.ts b/src/plugins/revealAllSpoilers.ts
index ead169f..9cb7b6b 100644
--- a/src/plugins/revealAllSpoilers.ts
+++ b/src/plugins/revealAllSpoilers.ts
@@ -32,8 +32,8 @@ export default definePlugin({
{
find: ".removeObscurity=function",
replacement: {
- match: /\.removeObscurity=function\((\i)\){/,
- replace: ".removeObscurity=function($1){$self.reveal($1);"
+ match: /(?<=\.removeObscurity=function\((\i)\){)/,
+ replace: (_, event) => `$self.reveal(${event});`
}
}
],