Skip to content

Commit

Permalink
fix it for real
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Jan 28, 2025
1 parent b1784b3 commit 4e5e93a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/permissionFreeWill/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export default definePlugin({
find: "#{intl::ONBOARDING_CHANNEL_THRESHOLD_WARNING}",
replacement: [
{
// why in the world are these arrow funcitons
match: /{(?:\i:(?:function\(\){return |\(\)=>)\i){2}}/,
match: /{(?:\i:(?:function\(\){return |\(\)=>)\i,?){2}}/,
replace: m => m.replaceAll(canonicalizeMatch(/(?:function\(\){return |\(\)=>)\i/g), "()=>()=>Promise.resolve(true)")
}
],
Expand Down

0 comments on commit 4e5e93a

Please sign in to comment.