Skip to content

Commit

Permalink
style: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Sep 26, 2024
1 parent 1c2c3b1 commit 6ec133e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function generateTableOfContents(html: string): TableOfContentsReturnType
const headings = html.matchAll(HEADINGS_REGEX);

for (const heading of headings) {
const level = Number.parseInt(heading[1]);
const level = Number(heading[1]);
const text = heading[2];
const id = slugify(text);

Expand Down

0 comments on commit 6ec133e

Please sign in to comment.