MCPcopy Create free account
hub / github.com/Snapchat/Valdi / forceForwardSlashes

Function forceForwardSlashes

valdi/vscode_debugger/src/common/pathUtils.ts:170–174  ·  view source on GitHub ↗
(aUrl: string)

Source from the content-addressed store, hash-verified

168 * blah\something => blah/something
169 */
170export function forceForwardSlashes(aUrl: string): string {
171 return aUrl
172 .replace(/\\\//g, '/') // Replace \/ (unnecessarily escaped forward slash)
173 .replace(/\\/g, '/');
174}
175
176/**
177 * Splits the path with the drive letter included with a trailing slash

Callers 15

waitForSourceMethod · 0.90
runScriptAsRemoteMethod · 0.90
replacePathMethod · 0.90
breakpointsTest.tsFile · 0.90
pickAttach.test.tsFile · 0.90
pathUtils.test.tsFile · 0.90
processMatchInputFunction · 0.90
applyMethod · 0.90
resolveEnvironmentFunction · 0.90
resolveEnvironmentFunction · 0.90
getCandidatesMethod · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected