Skip to content

Commit

Permalink
fix: notices plaintext patch
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Oct 17, 2024
1 parent c55e6de commit a305c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/coremods/notices/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default [
find: /hasNotice:\w+,sidebarTheme:\w+/,
replacements: [
{
match: /(\w+\.base,children:\[)(.+?}\)),/,
match: /(\w+\.base,children:\[.{0,50})(\w+\.\w+\?null.{10,30}}\)),/,
replace: (_, prefix, noticeWrapper) =>
`${prefix}${coremodStr}?.AnnouncementContainer?${coremodStr}.AnnouncementContainer({originalRes:${noticeWrapper}}):${noticeWrapper},`,
},
Expand Down

0 comments on commit a305c37

Please sign in to comment.