MCPcopy Create free account
hub / github.com/danvk/webdiff / split

Function split

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

Source from the content-addressed store, hash-verified

15 // not?
16 const split_re = /([./])/; // split to folders and extension
17 const split = (path: string) => path.split(split_re).filter(x => x);
18 const partsA = split(filePair.a);
19 const partsB = split(filePair.b);
20

Callers 1

filePairDisplayNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected