diff --git a/lib/main.js b/lib/main.js index fa26573..4dd2f64 100644 --- a/lib/main.js +++ b/lib/main.js @@ -31,7 +31,7 @@ export default { provideLinter: () => { const helpers = require("atom-linter"); - const regex = /.+:(\d+):\s*(.+)/; + const regex = /.+:(\d+):\s*(.+?):\s(.+)/; return { grammarScopes: ["source.ruby", "source.ruby.rails", "source.ruby.rspec"], scope: "file", @@ -48,8 +48,8 @@ export default { } toReturn.push({ range: helpers.rangeFromLineNumber(activeEditor, Number.parseInt((matches[1] - 1))), - type: 'Error', - text: matches[2], + type: matches[2], + text: matches[3], filePath: filePath }); });