Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (title, url, attributes) {

// Loop through all the given attributes.
for (let attribute in attributes) {
if (Object.prototype.hasOwnProperty.call(attributes, attribute)) {
if (Object.prototype.hasOwnProperty.call(attributes, attribute) && attributes[attribute] && attribute !== '_keys') {
// Support arrays in the attributes list (e.g., class), or the object's toString().
finalAttributes += ' ' + attribute + '="' + (Array.isArray(attributes[attribute]) ? attributes[attribute].join(' ') : attributes[attribute]) + '"'
}
Expand Down