Skip to content

Commit

Permalink
refactor: remove \n from text
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Aug 12, 2023
1 parent b8f3273 commit a2e4aef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/bitfields/bitfields.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export class BitfieldsService {
return entries
.map(
(entry, index) =>
`${entry.represented ? kleur.green('[✔]') : kleur.red('[✖]')} ${entry.name} (${
entry.bit
}) 1<<${index}`
`${entry.represented ? kleur.green('[✔]') : kleur.red('[✖]')} ${
entry.name
} (${entry.bit}) 1<<${index}`
)
.join('\n');
}
Expand Down
5 changes: 2 additions & 3 deletions src/changelog/changelog.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ export class ChangelogController implements OnModuleInit {
url: release.author.url,
iconURL: release.author.avatar_url
})
.setTitle(`Changelog`)
.setTitle(`Changelog | Release ${release.tag_name}`)
.setURL(release.url)
.setDescription(
release.body
.slice(0, 4096)
.replace('\r\n\r\n', '\n')
.replace(/\r\n\r\n/g, '\n')
)
.setColor('Blurple')
.setFields([
Expand All @@ -60,7 +60,6 @@ export class ChangelogController implements OnModuleInit {
inline: true
}
])
.setFooter({ text: `Release ${release.tag_name}` })
)
)
)
Expand Down

0 comments on commit a2e4aef

Please sign in to comment.