Browse Source

Fix comparing array and number

pull/44/head
opennota 10 years ago
parent
commit
ffade4d421
  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; } if (!/^[-:| ]+$/.test(lineText)) { return false; }
rows = lineText.split('|'); rows = lineText.split('|');
if (rows <= 2) { return false; } if (rows.length < 2) { return false; }
aligns = []; aligns = [];
for (i = 0; i < rows.length; i++) { for (i = 0; i < rows.length; i++) {
t = rows[i].trim(); t = rows[i].trim();

Loading…
Cancel
Save