MCPcopy Index your code
hub / github.com/witheve/Eve / parseLinkDestination

Function parseLinkDestination

src/commonmark.js:1549–1561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1547// Attempt to parse link destination, returning the string or
1548// null if no match.
1549var parseLinkDestination = function() {
1550 var res = this.match(reLinkDestinationBraces);
1551 if (res === null) {
1552 res = this.match(reLinkDestination);
1553 if (res === null) {
1554 return null;
1555 } else {
1556 return normalizeURI(unescapeString(res));
1557 }
1558 } else { // chop off surrounding <..>:
1559 return normalizeURI(unescapeString(res.substr(1, res.length - 2)));
1560 }
1561};
1562
1563// Attempt to parse a link label, returning number of characters parsed.
1564var parseLinkLabel = function() {

Callers

nothing calls this directly

Calls 3

normalizeURIFunction · 0.85
unescapeStringFunction · 0.85
matchMethod · 0.80

Tested by

no test coverage detected