From f4e47f271340ba8aaf6402496e51c596f835ac73 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sat, 1 Feb 2025 12:09:46 +0530 Subject: [PATCH] Update components/TOC.tsx --- components/TOC.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TOC.tsx b/components/TOC.tsx index 77889bb207e6..197fcdc7607c 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -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() }));