NoPendingCount: Improve slow patch
This commit is contained in:
parent
51c23ff796
commit
4e8d22b4d5
1 changed files with 2 additions and 2 deletions
|
|
@ -87,8 +87,8 @@ export default definePlugin({
|
||||||
replacement: {
|
replacement: {
|
||||||
// The two groups inside the first group grab the minified names of the variables,
|
// The two groups inside the first group grab the minified names of the variables,
|
||||||
// they are then referenced later to find unviewedTrialCount + unviewedDiscountCount.
|
// they are then referenced later to find unviewedTrialCount + unviewedDiscountCount.
|
||||||
match: /(?<=\{unviewedTrialCount:(\i),unviewedDiscountCount:(\i)\}.{0,300})\1\+\2/,
|
match: /(\{unviewedTrialCount:(\i),unviewedDiscountCount:(\i)\}.+?\i)=\1\+\2/,
|
||||||
replace: "0"
|
replace: (_, rest) => `${rest}=0`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue