Browse Source

Merge pull request #44 from opennota/master

Fix comparing array and number
pull/47/head
Vitaly Puzrin 10 years ago
parent
commit
bd4b21363e
  1. 2
      lib/rules_block/table.js

2
lib/rules_block/table.js

@ -34,7 +34,7 @@ module.exports = function table(state, startLine, endLine, silent) {
if (!/^[-:| ]+$/.test(lineText)) { return false; }
rows = lineText.split('|');
if (rows <= 2) { return false; }
if (rows.length < 2) { return false; }
aligns = [];
for (i = 0; i < rows.length; i++) {
t = rows[i].trim();

Loading…
Cancel
Save