MCPcopy Create free account
hub / github.com/witheve/Eve / parseLinkTitle

Function parseLinkTitle

src/commonmark.js:1537–1545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1535// Attempt to parse link title (sans quotes), returning the string
1536// or null if no match.
1537var parseLinkTitle = function() {
1538 var title = this.match(reLinkTitle);
1539 if (title === null) {
1540 return null;
1541 } else {
1542 // chop off quotes from title and unescape:
1543 return unescapeString(title.substr(1, title.length - 2));
1544 }
1545};
1546
1547// Attempt to parse link destination, returning the string or
1548// null if no match.

Callers

nothing calls this directly

Calls 2

unescapeStringFunction · 0.85
matchMethod · 0.80

Tested by

no test coverage detected