Remove redundant logic as per @niothiel's tip

This commit is contained in:
Barney Carroll 2016-03-03 15:26:09 +00:00
parent ea946f1a0e
commit 10f30dfa2e

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] ? "" : "")
cell.attrs[pair[1]] = pair[3] || ""
}
}