MCPcopy Index your code
hub / github.com/nodejs/node / slashSplit

Method slashSplit

deps/minimatch/index.js:1821–1829  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

1819 return this.regexp;
1820 }
1821 slashSplit(p) {
1822 if (this.preserveMultipleSlashes) {
1823 return p.split("/");
1824 } else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
1825 return ["", ...p.split(/\/+/)];
1826 } else {
1827 return p.split(/\/+/);
1828 }
1829 }
1830 match(f, partial = this.partial) {
1831 this.debug("match", f, this.pattern);
1832 if (this.comment) {

Callers 3

makeMethod · 0.80
levelTwoFileOptimizeMethod · 0.80
matchMethod · 0.80

Calls 2

splitMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected