MCPcopy Index your code
hub / github.com/codeaashu/claude-code / convertLeadingTabsToSpaces

Function convertLeadingTabsToSpaces

src/utils/file.ts:137–142  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

135}
136
137export 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
144export function getAbsoluteAndRelativePaths(path: string | undefined): {
145 absolutePath: string | undefined

Callers 3

getPatchForEditsFunction · 0.85
HighlightedCodeFallbackFunction · 0.85
getPatchForDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected