Skip to content

Commit

Permalink
Fix #25 unquoted attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
emilbayes committed Jun 12, 2016
1 parent ccf7997 commit 76c59f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ module.exports = function (h, opts) {
state = ATTR_VALUE
i--
} else if (state === ATTR_VALUE && /\s/.test(c)) {
res.push([ATTR_BREAK],[ATTR_VALUE,reg])
res.push([ATTR_VALUE,reg],[ATTR_BREAK])
reg = ''
state = ATTR
} else if (state === ATTR_VALUE || state === ATTR_VALUE_SQ
Expand Down

0 comments on commit 76c59f0

Please sign in to comment.