Skip to content

Commit af93701

Browse files
authored
Merge pull request #1391 from bids-standard/1389_fix_author_check
Skip single author check if author is not string.
2 parents 9a6a337 + 16dae79 commit af93701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bids-validator/validators/bids/checkDatasetDescription.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const checkAuthorField = authors => {
4949
if (authors.length == 1) {
5050
const author = authors[0]
5151
// check the number of commas in the single author field
52-
if (author.split(',').length <= 2) {
52+
if (typeof author == 'string' && author.split(',').length <= 2) {
5353
// if there is one or less comma in the author field,
5454
// we suspect that the curator has not listed everyone involved
5555
issues.push(new Issue({ code: 102, evidence: author }))

0 commit comments

Comments
 (0)