diff --git a/lib/jsdoc/name.js b/lib/jsdoc/name.js index b3b97d4b..695c37f6 100644 --- a/lib/jsdoc/name.js +++ b/lib/jsdoc/name.js @@ -198,7 +198,8 @@ exports.shorten = function(longname, forcedMemberof) { // like /** @name foo.bar(2) */ if ( /(.+)\(([^)]+)\)$/.test(name) ) { - name = RegExp.$1, variation = RegExp.$2; + name = RegExp.$1; + variation = RegExp.$2; } //// restore quoted strings back again