twenty / packages /twenty-shared /src /utils /sentry /getHumanReadableNameFromCode.ts
Jules
Initial clean CRM deployment with prebuilt assets
d9494a5
Raw
History Blame Contribute Delete
194 Bytes
export const getHumanReadableNameFromCode = (code: string) => {
return code
.split('_')
.map((word) => word.charAt(0)?.toUpperCase() + word.slice(1)?.toLowerCase())
.join(' ');
};