mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
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>
This commit is contained in:
parent
da8eeed5cb
commit
bea836214e
1 changed files with 3 additions and 3 deletions
|
@ -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)"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue