WEB-581 Remove the hyphens (#2998)

This commit is contained in:
Soni Jay
2026-01-15 16:23:26 -06:00
committed by GitHub
parent dfe75d43d7
commit cc39b34a57
7 changed files with 35 additions and 8 deletions
@@ -0,0 +1,8 @@
export function formatTabLabel(label: string): string {
if (!label) return '';
return label
.replace(/[-_]+/g, ' ')
.split(' ')
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
.join(' ');
}