Skip to content

Commit

Permalink
Allow other whitespace between @link and content
Browse files Browse the repository at this point in the history
  • Loading branch information
freejosh committed Mar 11, 2013
1 parent f90f631 commit 6b7125b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsdoc/util/templateHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ var toTutorial = exports.toTutorial = function(tutorial, content, missingOpts) {

/** Find symbol {@link ...} and {@tutorial ...} strings in text and turn into html links */
exports.resolveLinks = function(str) {
str = str.replace(/(?:\[(.+?)\])?\{@link(plain|code)? +(.+?)\}/gi,
str = str.replace(/(?:\[(.+?)\])?\{@link(plain|code)?\s+(.+?)\}/gi,
function(match, content, monospace, longname) {
if (monospace === 'plain') {
monospace = false;
Expand Down

0 comments on commit 6b7125b

Please sign in to comment.