mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Remove unused helper function formatTitleCaseGeneral
This commit is contained in:
@@ -38,14 +38,6 @@ export const safeRound = (num: number, decimals: number) => {
|
||||
};
|
||||
|
||||
export const formatTitleCase = (value: string) => {
|
||||
return value
|
||||
.toLowerCase()
|
||||
.split(' ')
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(' ');
|
||||
};
|
||||
|
||||
export const formatTitleCaseGeneral = (value: string) => {
|
||||
return value
|
||||
.toLowerCase()
|
||||
.replace(/_/g, ' ')
|
||||
|
||||
Reference in New Issue
Block a user