Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
ui: fix capitalization of initialisms (i.e. AWS)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwhite committed Jul 14, 2021
1 parent 5d05e2f commit 9fc995b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/app/helpers/component-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export function componentName([component]: [string]): string {
});

// Replace any separators that are not human readable
return result.replace(replace, ' ');
result = result.replace(replace, ' ');

// Replace brand initialisms
result = result.replace('Aws', 'AWS');
result = result.replace('Ecr', 'ECR');

return result;
}

export default helper(componentName);

0 comments on commit 9fc995b

Please sign in to comment.