Skip to content

Commit c624820

Browse files
Add safety check on content
1 parent ede6374 commit c624820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/yuidoc-fixer/normalize-yui-doc-class-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const normalizeYuiDocClassItem = item => {
3131
}
3232

3333
// For cases where we have @decorator(args), other cases are @decorator x
34-
if (!content.startsWith('(')) {
34+
if (typeof content === 'string' && !content.startsWith('(')) {
3535
content = ' ' + content
3636
}
3737

0 commit comments

Comments
 (0)