(content: string)
| 135 | } |
| 136 | |
| 137 | export function convertLeadingTabsToSpaces(content: string): string { |
| 138 | // The /gm regex scans every line even on no-match; skip it entirely |
| 139 | // for the common tab-free case. |
| 140 | if (!content.includes('\t')) return content |
| 141 | return content.replace(/^\t+/gm, _ => ' '.repeat(_.length)) |
| 142 | } |
| 143 | |
| 144 | export function getAbsoluteAndRelativePaths(path: string | undefined): { |
| 145 | absolutePath: string | undefined |
no outgoing calls
no test coverage detected