MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / trimTrailingWhitespace

Function trimTrailingWhitespace

src/utils/git/gitConfigParser.ts:186–192  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

184}
185
186function trimTrailingWhitespace(s: string): string {
187 let end = s.length
188 while (end > 0 && (s[end - 1] === ' ' || s[end - 1] === '\t')) {
189 end--
190 }
191 return s.slice(0, end)
192}
193
194/**
195 * Check if a config line like `[remote "origin"]` matches the given section/subsection.

Callers 1

parseValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected