diff --git a/lib/lint-error.js b/lib/lint-error.js index db7db18..da8870b 100644 --- a/lib/lint-error.js +++ b/lib/lint-error.js @@ -21,11 +21,11 @@ function LintError(line) { // hack to handle reasons like this: // "Blank line at the end of a code block. Is this needed?" - if (parts.length === 4) { + if (parts.length >= 4) { temp = []; temp.push(parts[0]); - temp.push([parts[1], parts[2]].join(' ')); - temp.push(parts[3]); + temp.push(parts.slice(1, parts.length - 1).join(' ')); + temp.push(parts[parts.length - 1]); parts = temp; }