Skip to content

Commit 9d1c04d

Browse files
Adding support for an optional contributor field in the parser
1 parent e322059 commit 9d1c04d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/snippetParser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function parseSnippet(snippetPath, text) {
5252
description: properties.description,
5353
author: properties.author,
5454
tags: properties.tags.split(',').map((tag) => tag.trim()).filter((tag) => tag),
55+
contributors: 'contributors' in properties ? properties.contributors.split(',').map((contributor) => contributor.trim()).filter((contributor) => contributor) : [],
5556
code: code,
5657
}
5758
}

0 commit comments

Comments
 (0)