NoPendingCount: Improve slow patch

This commit is contained in:
Nuckyz 2025-09-08 22:01:16 -03:00
parent 51c23ff796
commit 4e8d22b4d5
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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`
} }
} }
], ],