(section?: string)
| 15 | * @returns The formatted section string. |
| 16 | */ |
| 17 | export function formatString(section?: string) { |
| 18 | if (!section) return ''; |
| 19 | return section |
| 20 | .replace(/-/g, ' ') |
| 21 | .replace(/\b\w/g, char => char.toUpperCase()); |
| 22 | } |
| 23 | |
| 24 | const DOCS_CONTENT_PATH = `${process.cwd()}/content/docs`; |
| 25 | const LEARN_CONTENT_PATH = `${process.cwd()}/content/learn`; |
no outgoing calls
no test coverage detected