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

Function isWindowsDriveLetterCodePoints

out/cli.cjs:3630–3632  ·  view source on GitHub ↗
(cp1, cp2)

Source from the content-addressed store, hash-verified

3628 return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
3629 }
3630 function isWindowsDriveLetterCodePoints(cp1, cp2) {
3631 return infra.isASCIIAlpha(cp1) && (cp2 === p4(":") || cp2 === p4("|"));
3632 }
3633 function isWindowsDriveLetterString(string) {
3634 return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
3635 }

Callers 1

Calls 1

p4Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…