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

Function toUSVString

out/cli.cjs:48083–48090  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

48081 }
48082 var hasToWellFormed = !!String.prototype.toWellFormed;
48083 function toUSVString(val) {
48084 if (hasToWellFormed) {
48085 return `${val}`.toWellFormed();
48086 } else if (nodeUtil.toUSVString) {
48087 return nodeUtil.toUSVString(val);
48088 }
48089 return `${val}`;
48090 }
48091 function parseRangeHeader(range) {
48092 if (range == null || range === "") return { start: 0, end: null, size: null };
48093 const m5 = range ? range.match(/^bytes (\d+)-(\d+)\/(\d+)?$/) : null;

Callers 3

setMethod · 0.85
consumeEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…