Skip to content

Commit

Permalink
feat(github): remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 22, 2020
1 parent 41a701b commit f63b26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-github/src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export function addListeners(on: <T extends WebhookEvent>(event: T, handler: Eve
function formatMarkdown(source: string) {
return source
.replace(/^```(.*)$/gm, '')
.replace(/^<!--(.*)-->$/gm, '')
.replace(/\n\s*\n/g, '\n')
}

Expand Down

0 comments on commit f63b26a

Please sign in to comment.