Skip to content

Commit

Permalink
improve formatting for tag parsing code
Browse files Browse the repository at this point in the history
  • Loading branch information
jfredrickson committed Apr 22, 2019
1 parent d9f21cd commit af15210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
let outputTags = '';
//loop through tags and parse
const tags = Array.isArray(page.tags) ? page.tags : [page.tags];
for(let tag of tags ){
outputTags += '<span class="usa-label">' + tag + '</span>';
for (let tag of tags) {
outputTags += '<span class="usa-label">' + tag + '</span>';
}

//final output for search
Expand Down

0 comments on commit af15210

Please sign in to comment.