MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / isWindowsDriveLetterString

Function isWindowsDriveLetterString

out/cli.cjs:3633–3635  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

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 }
3636 function isNormalizedWindowsDriveLetterString(string) {
3637 return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
3638 }

Calls

no outgoing calls

Tested by

no test coverage detected