MCPcopy
hub / github.com/microsoft/vscode-js-debug / forceForwardSlashes

Function forceForwardSlashes

src/common/pathUtils.ts:216–220  ·  view source on GitHub ↗
(aUrl: string)

Source from the content-addressed store, hash-verified

214 * blah\something => blah/something
215 */
216export function forceForwardSlashes(aUrl: string): string {
217 return aUrl
218 .replace(/\\\//g, '/') // Replace \/ (unnecessarily escaped forward slash)
219 .replace(/\\/g, '/');
220}
221
222/**
223 * Splits the path with the drive letter included with a trailing slash

Callers 15

waitForSourceMethod · 0.90
replacePathMethod · 0.90
breakpointsTest.tsFile · 0.90
pathUtils.test.tsFile · 0.90
constructorMethod · 0.90
applyMethod · 0.90
getBootloaderFileFunction · 0.90
getBootloaderFileMethod · 0.90
guessOutFilesFunction · 0.90
explodeMethod · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected