Skip to content

Commit

Permalink
Update components/TOC.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgoyalevil authored Feb 1, 2025
1 parent f4752c8 commit f4e47f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/TOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe
// a-namedefinitionsapplicationaapplication slugWithATag contains transformed heading name that is later used
// for scroll spy identification
slugWithATag: item.content
.replace(/[<>?!:`'."\\/=@#$%^&*()\[\]{}+,;]/gi, '')
.replace(/[<>?!:`'."\\/=@#$%^&*()[\]{}+,;]/gi, '')
.replace(/\s/gi, '-')
.toLowerCase()
}));
Expand Down

0 comments on commit f4e47f2

Please sign in to comment.