From 46b7fecafe283e814e2088373ec857747e4cf314 Mon Sep 17 00:00:00 2001
From: Fabio Berger <me@fabioberger.com>
Date: Thu, 22 Mar 2018 11:56:12 +0000
Subject: Create helper function for converting dashes names for display

---
 packages/react-shared/src/components/markdown_section.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/react-shared/src/components/markdown_section.tsx')

diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx
index e895afd2a..449e8a045 100644
--- a/packages/react-shared/src/components/markdown_section.tsx
+++ b/packages/react-shared/src/components/markdown_section.tsx
@@ -43,7 +43,7 @@ export class MarkdownSection extends React.Component<MarkdownSectionProps, Markd
         const { sectionName, markdownContent, headerSize, githubLink } = this.props as PropsWithDefaults;
 
         const id = utils.getIdFromName(sectionName);
-        const finalSectionName = sectionName.replace(/-/g, ' ');
+        const finalSectionName = utils.convertDashesToSpaces(sectionName);
         return (
             <div
                 className="md-px1 sm-px2 overflow-hidden"
-- 
cgit v1.2.3

