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

Function containsForbiddenDomainCodePoint

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

Source from the content-addressed store, hash-verified

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 }
3645 function isSpecialScheme(scheme) {
3646 return specialSchemes[scheme] !== void 0;
3647 }

Callers 1

domainToASCIIFunction · 0.85

Calls 2

searchMethod · 0.45

Tested by

no test coverage detected