/[sudobot]/trunk/docs/utils/utils.ts
ViewVC logotype

Contents of /trunk/docs/utils/utils.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (show annotations)
Mon Jul 29 17:59:26 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 169 byte(s)
chore: add trunk
1 export const toTitleCase = (s: string) =>
2 s
3 .replace(/^[-_]*(.)/, (_, c) => c.toUpperCase())
4 .replace(/[-_]+(.)/g, (_, c) => " " + c.toUpperCase());

team@onesoftnet.eu.org
ViewVC Help
Powered by ViewVC 1.1.26