Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ slash
Function
slash
playground/vitestSetup.ts:396–398 ·
view source on GitHub ↗
(p: string)
Source
from the content-addressed store, hash-verified
394
}
395
396
export
function
slash(p: string): string {
397
return
p.replace(/\\/g,
'/'
)
398
}
399
400
function
stripTrailingSlashIfNeeded(url: string, base: string): string {
401
if
(base ===
'/'
) {
Callers
2
vitestSetup.ts
File · 0.70
isWatched
Function · 0.50
Calls
no outgoing calls
Tested by
1
isWatched
Function · 0.40