Merge pull request #975 from barneycarroll/empty-attrs-string
Empty attributes. Fixes #971
This commit is contained in:
commit
fcf6e16929
3 changed files with 6 additions and 1 deletions
|
|
@ -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] || ""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue