We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a012e3e commit 2823a42Copy full SHA for 2823a42
lib/overcommit/hook/pre_commit/stylelint.rb
@@ -8,7 +8,7 @@ class Stylelint < Base
8
# example of output:
9
# index.css: line 4, col 4, error - Expected indentation of 2 spaces (indentation)
10
11
- MESSAGE_REGEX = /^(?<file>.+):\D*(?<line>\d+).*$/.freeze
+ MESSAGE_REGEX = /^(?<file>[^:]+):\D*(?<line>\d+).*$/.freeze
12
13
def run
14
result = execute(command, args: applicable_files)
0 commit comments