MCPcopy Index your code
hub / github.com/rtfpessoa/diff2html / unifyPath

Function unifyPath

src/utils.ts:36–38  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

34 * Converts all '\' in @path to unix style '/'
35 */
36export function unifyPath(path: string): string {
37 return path ? path.replace(/\\/g, '/') : path;
38}
39
40/**
41 * Create unique number identifier for @text

Callers 2

filenameDiffFunction · 0.90
utils-tests.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…