Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ trimWhitespace
Function
trimWhitespace
test/cli/test/detect-async-leaks.test.ts:343–348 ·
view source on GitHub ↗
(value: string)
Source
from the content-addressed store, hash-verified
341
}
342
343
function
trimWhitespace(value: string) {
344
return
value
345
.split(
'\n'
)
346
.map(line => line.replace(/[ \t]+$/g,
''
))
347
.join(
'\n'
)
348
}
Callers
1
runInlineTests
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected