Skip to content

Commit

Permalink
chore: improve ending code block regex (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored May 23, 2023
1 parent 927ed4d commit c2e2190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Summarizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ${message.content
.replace(/```ts\b/g, "```typescript")
.replace(/^```/, "\n```")
.replace(/[^\n]```/gm, "\n\n```")
.replace(/([^\n])\n```/gm, "$1\n\n```")}`
.replace(/([^\n])\n```([^\n]*\n[^\n])/gm, "$1\n\n```$2")}`

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

0 comments on commit c2e2190

Please sign in to comment.