Skip to content

Commit

Permalink
chore: ensure code blocks have correct whitespace (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored May 22, 2023
1 parent efe6f56 commit ac80ca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Summarizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ ${messageContent.join("\n\n")}`,
${message.content
.replace(/```ts\b/g, "```typescript")
.replace(/^```/, "\n```")
.replace(/[^\n]```/gm, "\n\n```")}`
.replace(/[^\n]```/gm, "\n\n```")
.replace(/([^\n])\n```/gm, "$1\n\n```")}`

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

0 comments on commit ac80ca4

Please sign in to comment.