mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
for complex type expressions, use the expression as the link text
fixes test failure.
This commit is contained in:
parent
f0224e9845
commit
badff421bc
@ -138,7 +138,7 @@ var linkto = exports.linkto = function(longname, linktext, cssClass) {
|
||||
var parsedType;
|
||||
|
||||
// handle complex type expressions that may require multiple links
|
||||
if (text.search(/[<{(]/) !== -1) {
|
||||
if (longname && longname.search(/[<{(]/) !== -1) {
|
||||
parsedType = parseType(longname);
|
||||
return catharsis.stringify(parsedType, {
|
||||
cssClass: cssClass,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user