Skip to content

Commit 9c7dd85

Browse files
Bugfix: CommentTag.getTag handles empty strings incorrectly, see #127
1 parent 77c7a67 commit 9c7dd85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/typedoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5735,7 +5735,7 @@ var td;
57355735
return null;
57365736
for (var i = 0, c = this.tags.length; i < c; i++) {
57375737
var tag = this.tags[i];
5738-
if (tag.tagName == tagName && (!paramName || tag.paramName == paramName)) {
5738+
if (tag.tagName == tagName && (paramName == void 0 || tag.paramName == paramName)) {
57395739
return this.tags[i];
57405740
}
57415741
}

src/td/models/Comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module td.models
8080
if (!this.tags) return null;
8181
for (var i = 0, c = this.tags.length; i < c; i++) {
8282
var tag = this.tags[i];
83-
if (tag.tagName == tagName && (!paramName || tag.paramName == paramName)) {
83+
if (tag.tagName == tagName && (paramName == void 0 || tag.paramName == paramName)) {
8484
return this.tags[i];
8585
}
8686
}

0 commit comments

Comments
 (0)