/[sudobot]/branches/8.x/docs/utils/utils.ts
ViewVC logotype

Annotation of /branches/8.x/docs/utils/utils.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (hide annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 169 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 rakinar2 577 export const toTitleCase = (s: string) =>
2     s
3     .replace(/^[-_]*(.)/, (_, c) => c.toUpperCase())
4     .replace(/[-_]+(.)/g, (_, c) => " " + c.toUpperCase());

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26