Fix UwUifier
Some checks are pending
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-05-05 22:21:18 -04:00
parent b9e07cbe0f
commit 6073624d8f
No known key found for this signature in database

View file

@ -167,22 +167,16 @@ export default definePlugin({
},
],
patches: [{
patches: [
{
find: ".isPureReactComponent=!0;",
predicate: () => settings.store.uwuEverything,
replacement: {
match: /(?<=.defaultProps\)void 0.{0,60})props:(\i)/,
replace: "props:$self.uwuifyProps($1)"
match: /(?<=.defaultProps\)void 0.{0,60})(\i)\)/,
replace: "$self.uwuifyProps($1))"
}
}, {
find: ".__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner",
predicate: () => settings.store.uwuEverything,
replacement: {
match: /(?<=.defaultProps\)void 0.{0,60})props:(\i)/,
replace: "props:$self.uwuifyProps($1)"
},
all: true
}],
}
],
uwuifyProps(props: any) {
if (!props.children) return props;