morecommands: improve patch (#768)

This commit is contained in:
prism 2026-02-13 23:32:29 +01:00 • committed by GitHub
parent 80938f4c6c
commit 5d67a3b556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,8 +441,8 @@ export default definePlugin({
find: ".isPureReactComponent=!0;",
predicate: () => settings.store.uwuEverything,
replacement: {
match: /(?<=.defaultProps\)void 0.{0,60})(\i)\)/,
replace: "$self.uwuifyProps($1))"
match: /(\.defaultProps\).{0,80}return \i\(\i,\i,void 0,void 0,null,)(\i)\)/,
replace: "$1$self.uwuifyProps($2))"
}
}
],