ExportContacts: Shorten Replace

This commit is contained in:
thororen1234 2024-07-20 03:02:04 -04:00
parent f3d90a8842
commit 6714da52f0

View file

@ -62,8 +62,8 @@ export default definePlugin({
{
find: "fetchRelationships(){",
replacement: {
match: /(\.then\(\i)=>(\i\.\i\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS"),relationships:(\i\.body)}\)/,
replace: "$1=>{$2,relationships:$3}); $self.getContacts($3)}"
match: /(\.then\(\i)=>(\i\.\i\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\))/,
replace: "$1=>{$2; $self.getContacts($3)}"
}
},
{