Skip to content

Commit

Permalink
fix: update selector for payload examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jun 26, 2022
1 parent da2e9a3 commit 22ef2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/section-to-webhook.ts
Expand Up @@ -113,6 +113,6 @@ const getActions = ($: cheerio.Root): string[] => {
};

const getExamples = ($: cheerio.Root) =>
$(".language-json")
$('[data-highlight="json"] code')
.map((index, el) => JSON.parse($(el).text()) as unknown)
.get() as object[];

0 comments on commit 22ef2f6

Please sign in to comment.