Merge pull request #975 from barneycarroll/empty-attrs-string

Empty attributes. Fixes #971
This commit is contained in:
Leo Horie 2016-03-19 22:36:32 -04:00
commit fcf6e16929
3 changed files with 6 additions and 1 deletions

View file

@ -96,7 +96,7 @@
classes.push(match[2])
} else if (match[3][0] === "[") {
var pair = /\[(.+?)(?:=("|'|)(.*?)\2)?\]/.exec(match[3])
cell.attrs[pair[1]] = pair[3] || (pair[2] ? "" : true)
cell.attrs[pair[1]] = pair[3] || ""
}
}