mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-07 11:53:39 -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],
|
authors: [EquicordDevs.iamme],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: ".Messages.MESSAGE_EDITED,",
|
find: "Messages.MESSAGE_EDITED,",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(children:\[null!=\i.+?(?:[^}]*[}]){3}\))/,
|
match: /Messages\.MESSAGE_EDITED,(?:[^}]*[}]){3}\)/,
|
||||||
replace: "$1,$self.PinnedIcon(arguments[0].message)"
|
replace: "$&,$self.PinnedIcon(arguments[0].message)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue