From bea836214eaf80f39dc14a74f20d3e1b71a78870 Mon Sep 17 00:00:00 2001 From: programminglaboratorys <107296738+programminglaboratorys@users.noreply.github.com> Date: Tue, 15 Oct 2024 06:56:05 +0300 Subject: [PATCH] much better patch for PinIcon (#54) * adding PinIcon * patch change * include dev to constants * include dev to authors * mb * moved PinIcon to correct location * patch improvement * unneeded group in patch Co-authored-by: Cortex <126973723+verysillycat@users.noreply.github.com> --------- Co-authored-by: Cortex <126973723+verysillycat@users.noreply.github.com> --- src/equicordplugins/pinIcon/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/pinIcon/index.tsx b/src/equicordplugins/pinIcon/index.tsx index 6143bea49..be1066d69 100644 --- a/src/equicordplugins/pinIcon/index.tsx +++ b/src/equicordplugins/pinIcon/index.tsx @@ -27,10 +27,10 @@ export default definePlugin({ authors: [EquicordDevs.iamme], patches: [ { - find: ".Messages.MESSAGE_EDITED,", + find: "Messages.MESSAGE_EDITED,", replacement: { - match: /(children:\[null!=\i.+?(?:[^}]*[}]){3}\))/, - replace: "$1,$self.PinnedIcon(arguments[0].message)" + match: /Messages\.MESSAGE_EDITED,(?:[^}]*[}]){3}\)/, + replace: "$&,$self.PinnedIcon(arguments[0].message)" } } ],