Skip to content

Commit 2823a42

Browse files
Fixed message Regex (sds#767)
1 parent a012e3e commit 2823a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/overcommit/hook/pre_commit/stylelint.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Stylelint < Base
88
# example of output:
99
# index.css: line 4, col 4, error - Expected indentation of 2 spaces (indentation)
1010

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

1313
def run
1414
result = execute(command, args: applicable_files)

0 commit comments

Comments
 (0)