Skip to content

Commit

Permalink
Fixed #238
Browse files Browse the repository at this point in the history
  • Loading branch information
nishad0011 committed Jul 31, 2024
1 parent 41a62ef commit 2646d22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/Resources.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ const Resources = () => {
</div>
</div>
{Object.keys(filteredResources).map((key, index) => (
<ResourceSection key={index} id={key} title={key.replace(/-/g, ' ')} resources={filteredResources[key]} />
<ResourceSection
key={index}
id={key}
title={key.replace(/(^[a-z])/g,($1)=>{return $1.toUpperCase()})
.replace(/([A-Z])/g," $1")}
resources={filteredResources[key]}
/>
))}
</div>
</Layout>
Expand Down

0 comments on commit 2646d22

Please sign in to comment.