Skip to content

Commit 7127736

Browse files
committed
Removed brackets from around optional tag names.
1 parent d4979b7 commit 7127736

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/utils.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,9 @@ module.exports.parseData = function (data, file) {
142142

143143
methods.tags.forEach(function (tag) {
144144

145-
if (tag.types) {
145+
if (tag.name && tag.optional) {
146146

147-
tag.types.forEach(function (type, index) {
148-
149-
if (type.match(/\?/g)) {
150-
151-
tag.types[index] = type.replace(/\?/g, '');
152-
153-
}
154-
155-
});
147+
tag.name = tag.name.replace(/^\[|\]$/g, '');
156148

157149
}
158150

0 commit comments

Comments
 (0)