MCPcopy
hub / github.com/react/create-react-app / splitPath

Function splitPath

packages/react-error-overlay/fixtures/bundle_u.mjs:26961–26963  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

26959var splitPathRe =
26960 /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
26961var splitPath = function(filename) {
26962 return splitPathRe.exec(filename).slice(1);
26963};
26964
26965// path.resolve([from ...], to)
26966// posix version

Callers 1

bundle_u.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected