diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-03-08 00:11:59 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 00:11:59 -0300 |
commit | 40395d562aeadaeaa88c5bc106797ea5a4ee51e4 (patch) | |
tree | f5e96be8b32a670bcd5fe86d41ef5c47c6ee3b44 /src/plugins/revealAllSpoilers.ts | |
parent | 7322c3af047489e122b59b01825ba5473dc96a62 (diff) | |
download | Vencord-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.ts | 4 |
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});` } } ], |