From ffade4d421e44b218c02ff9831a0aecd2e2278a0 Mon Sep 17 00:00:00 2001 From: opennota Date: Thu, 5 Feb 2015 00:03:17 +0700 Subject: [PATCH] Fix comparing array and number --- lib/rules_block/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules_block/table.js b/lib/rules_block/table.js index 064a70b..aa87f33 100644 --- a/lib/rules_block/table.js +++ b/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();