Skip to content

Commit

Permalink
Fixed message Regex (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-mccutchen authored Nov 19, 2021
1 parent a012e3e commit 2823a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/overcommit/hook/pre_commit/stylelint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Stylelint < Base
# example of output:
# index.css: line 4, col 4, error - Expected indentation of 2 spaces (indentation)

MESSAGE_REGEX = /^(?<file>.+):\D*(?<line>\d+).*$/.freeze
MESSAGE_REGEX = /^(?<file>[^:]+):\D*(?<line>\d+).*$/.freeze

def run
result = execute(command, args: applicable_files)
Expand Down

0 comments on commit 2823a42

Please sign in to comment.