Permalink
Browse files

Fix for jsDoc param without additional parts

  • Loading branch information...
1 parent f1ff5dc commit 7c82645dfb2a2a8022384aafbaf1f7962625f68d Jason Seney committed May 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/docker.js
View
@@ -723,7 +723,7 @@ Docker.prototype.parseMultiline = function(comment){
}
break;
default:
- if(bits[0].charAt(0) == '{') tag.types = grabType(bits).split(/ *[|,\/] */);
+ if(bits.length > 0 && bits[0].charAt(0) == '{') tag.types = grabType(bits).split(/ *[|,\/] */);
tag.description = bits.join(' ');
tag.name = tagType;
tag.type = 'unknown';

0 comments on commit 7c82645

Please sign in to comment.