MCPcopy Create free account
hub / github.com/nodejs/node / skipSeparatorFromLinkText

Function skipSeparatorFromLinkText

test/fixtures/snapshot/typescript.js:128588–128596  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

128586 }
128587 ts.buildLinkParts = buildLinkParts;
128588 function skipSeparatorFromLinkText(text) {
128589 var pos = 0;
128590 if (text.charCodeAt(pos++) === 124 /* CharacterCodes.bar */) {
128591 while (pos < text.length && text.charCodeAt(pos) === 32 /* CharacterCodes.space */)
128592 pos++;
128593 return text.slice(pos);
128594 }
128595 return text;
128596 }
128597 function findLinkNameEnd(text) {
128598 if (text.indexOf("()") === 0)
128599 return 2;

Callers 1

buildLinkPartsFunction · 0.85

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected