Fix add/remove with spaces/special characters
This commit is contained in:
@@ -131,7 +131,11 @@ def output_file_group(group)
|
||||
puts "#{c_group}##{@c[:rst]} #{@c[h[:col]]}#{h[:msg]}:\
|
||||
#{padding}#{@c[:dark]} [#{@c[:rst]}#{@e}#{@c[:dark]}] #{c_group}#{rel_file}#{@c[:rst]}"
|
||||
# Save the ordered list of output files
|
||||
@output_files << h[:file]
|
||||
@output_files << if h[:file] =~ /^"([^\\"]*(\\.[^"]*)*)"/
|
||||
$1.gsub(/\\(.)/,'\1')
|
||||
else
|
||||
h[:file].match(/^[^ ]*/)[0]
|
||||
end
|
||||
end
|
||||
|
||||
puts "#{c_group}##{@c[:rst]}" # Extra '#'
|
||||
|
||||
Reference in New Issue
Block a user