Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 3e4b8e9

Browse files
committed
Merge pull request #43 from buo/catch-syntax-error
Fix the regex to catch the syntax errors
2 parents 05c483a + c79c20f commit 3e4b8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
provideLinter: () => {
2525
const helpers = require("atom-linter");
2626
const Path = require("path");
27-
const regex = /.+:(\d+):\s*(.+?):\s(.+)/;
27+
const regex = /.+:(\d+):\s*(.+?)[,:]\s(.+)/;
2828
return {
2929
name: "Ruby",
3030
grammarScopes: ["source.ruby", "source.ruby.rails", "source.ruby.rspec"],

0 commit comments

Comments
 (0)