MCPcopy
hub / github.com/di-sukharev/opencommit / startsWithWindowsDriveLetter

Function startsWithWindowsDriveLetter

out/cli.cjs:4325–4328  ·  view source on GitHub ↗
(input, pointer)

Source from the content-addressed store, hash-verified

4323 };
4324 var fileOtherwiseCodePoints = /* @__PURE__ */ new Set([p4("/"), p4("\\"), p4("?"), p4("#")]);
4325 function startsWithWindowsDriveLetter(input, pointer) {
4326 const length = input.length - pointer;
4327 return length >= 2 && isWindowsDriveLetterCodePoints(input[pointer], input[pointer + 1]) && (length === 2 || fileOtherwiseCodePoints.has(input[pointer + 2]));
4328 }
4329 URLStateMachine.prototype["parse file"] = function parseFile(c4) {
4330 this.url.scheme = "file";
4331 this.url.host = "";

Calls 2

hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…