MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / containsForbiddenHostCodePoint

Function containsForbiddenHostCodePoint

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

Source from the content-addressed store, hash-verified

3637 return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
3638 }
3639 function containsForbiddenHostCodePoint(string) {
3640 return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u) !== -1;
3641 }
3642 function containsForbiddenDomainCodePoint(string) {
3643 return containsForbiddenHostCodePoint(string) || string.search(/[\u0000-\u001F]|%|\u007F/u) !== -1;
3644 }

Callers 2

parseOpaqueHostFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected