Skip to content

Commit

Permalink
[webui] Also highlight _aggregate files as XML
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 9, 2012
1 parent 87feafd commit 7362e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/app/helpers/package_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def human_readable_fsize( bytes )
end

def guess_code_class( filename )
return "xml" if ["_link", "_patchinfo", "_service"].include?(filename)
return 'xml' if ['_aggregate', '_link', '_patchinfo', '_service'].include?(filename)
return "bash" if filename.match(/^rc[\w-]+$/) # rc-scripts are shell
return "python" if filename.match(/^.*rpmlintrc$/)
return "makefile" if filename == "debian.rules"
Expand Down

0 comments on commit 7362e7a

Please sign in to comment.