Skip to content

Commit

Permalink
Merge pull request #57 from gijswijs/master
Browse files Browse the repository at this point in the history
Handle tags that are already in an array of objects
  • Loading branch information
gijswijs authored May 28, 2020
2 parents 08c571e + 7fa15a1 commit 76c0c6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ function plugin(opts) {

tagsData.forEach(function(rawTag) {
// Trim leading + trailing white space from tag.
var tag = String(rawTag).trim();
var tag = ''
if (typeof rawTag === 'object') {
tag = String(rawTag.name).trim();
} else {
tag = String(rawTag).trim();
}


// Save url safe formatted and display versions of tag data
Expand Down

0 comments on commit 76c0c6c

Please sign in to comment.