lib/overcommit/hook/pre_commit/xml_lint.rb in overcommit-0.27.0 vs lib/overcommit/hook/pre_commit/xml_lint.rb in overcommit-0.28.0

- old
+ new

@@ -1,13 +1,13 @@ module Overcommit::Hook::PreCommit # Runs `xmllint` against any modified XML files. # # @see http://xmlsoft.org/xmllint.html class XmlLint < Base - MESSAGE_REGEX = /^(?<file>[^:]+):(?<line>\d+):/ + MESSAGE_REGEX = /^(?<file>(?:\w:)?[^:]+):(?<line>\d+):/ def run - result = execute(command + applicable_files) + result = execute(command, args: applicable_files) output = result.stderr.chomp return :pass if result.success? && output.empty? # example message: