MCPcopy
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
396export function slash(p: string): string {
397 return p.replace(/\\/g, '/')
398}
399
400function stripTrailingSlashIfNeeded(url: string, base: string): string {
401 if (base === '/') {

Callers 2

vitestSetup.tsFile · 0.70
isWatchedFunction · 0.50

Calls

no outgoing calls

Tested by 1

isWatchedFunction · 0.40