Skip to content

Commit

Permalink
fix: typo in filteredToc
Browse files Browse the repository at this point in the history
  • Loading branch information
timlrx committed Aug 8, 2021
1 parent d45233e commit 08fb1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/TOCInline.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const TOCInline = ({

const filteredToc = toc.filter(
(heading) =>
heading.depth >= fromHeading && heading.depth <= toHeading ** !re.test(heading.value)
heading.depth >= fromHeading && heading.depth <= toHeading && !re.test(heading.value)
)

const tocList = (
Expand Down

1 comment on commit 08fb1d4

@vercel
Copy link

@vercel vercel bot commented on 08fb1d4 Aug 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.