Skip to content

Commit

Permalink
chore: code block cleanup (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored May 22, 2023
1 parent 120b565 commit efe6f56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Summarizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ ${messageContent.join("\n\n")}`,
)} <small>&mdash; ${new Date(
message.timestamp,
).toUTCString()}</small><br />
${message.content.replace(/```ts\b/g, "```typescript")}`
${message.content
.replace(/```ts\b/g, "```typescript")
.replace(/^```/, "\n```")
.replace(/[^\n]```/gm, "\n\n```")}`

const mentions = yield* _(
Effect.forEachPar(content.matchAll(/<@(\d+)>/g), ([, userId]) =>
Expand Down

0 comments on commit efe6f56

Please sign in to comment.