diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-09-21 22:41:25 -0300 |
---|---|---|
committer | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-09-21 22:41:25 -0300 |
commit | dba6c4cea6e1e618e0c043e34a8de0c76bc3a1f4 (patch) | |
tree | e9fb960107de5fe51fc1b7adee1de09653d4b7f5 | |
parent | 6b10947d060809d6dbb8702975d1f75ec13f6a95 (diff) | |
download | Vencord-dba6c4cea6e1e618e0c043e34a8de0c76bc3a1f4.tar.gz Vencord-dba6c4cea6e1e618e0c043e34a8de0c76bc3a1f4.tar.bz2 Vencord-dba6c4cea6e1e618e0c043e34a8de0c76bc3a1f4.zip |
Fix broken FakeNitro patch (again)
-rw-r--r-- | src/plugins/fakeNitro.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts index e7f6743..07191e1 100644 --- a/src/plugins/fakeNitro.ts +++ b/src/plugins/fakeNitro.ts @@ -327,8 +327,8 @@ export default definePlugin({ find: ".Messages.EMOJI_POPOUT_UNJOINED_DISCOVERABLE_GUILD_DESCRIPTION", predicate: () => settings.store.transformEmojis, replacement: { - match: /(?<=\.Messages\.EMOJI_POPOUT_ADDED_PACK_DESCRIPTION.+?return )(.{0,1200}\.Messages\.EMOJI_POPOUT_UNJOINED_DISCOVERABLE_GUILD_DESCRIPTION.+?)(}\({)/, - replace: (_, reactNode, rest) => `$self.addFakeNotice(${FakeNoticeType.Emoji},${reactNode},!!arguments[0]?.fakeNitroNode?.fake)${rest}fakeNitroNode:arguments[0]?.fakeNitroNode,` + match: /(?<=\.Messages\.EMOJI_POPOUT_ADDED_PACK_DESCRIPTION.+?return ).{0,1200}\.Messages\.EMOJI_POPOUT_UNJOINED_DISCOVERABLE_GUILD_DESCRIPTION.+?(?=}\()/, + replace: reactNode => `$self.addFakeNotice(${FakeNoticeType.Emoji},${reactNode},!!arguments[0]?.fakeNitroNode?.fake)` } } ], |