Skip to content

Commit

Permalink
Fix feature link for CSharp design pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Feb 6, 2024
1 parent c7080fe commit a6d757e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/data/Features.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ function addLinkToFeature(features: Feature[]): Feature[] {
const feature = features[key];
const match = names.find(x => x.toLowerCase() === feature.title.toLowerCase());
if (match) {
const link = getIndexLink(feature.title);
const link = getIndexLink(
// cs design pattern has conflict that I just leave it with a simple solution.
feature.title.includes('CSharp') ? feature.title.replace('CSharp', 'Csharp') : feature.title
);
feature.link = link ? link : '/';
}
}
Expand Down

0 comments on commit a6d757e

Please sign in to comment.