]> source.dussan.org Git - redmine.git/commit
Attachment preview does not work for some source files such as JavaScript and Go...
authorGo MAEDA <maeda@farend.jp>
Sat, 4 May 2019 09:32:05 +0000 (09:32 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 4 May 2019 09:32:05 +0000 (09:32 +0000)
commit400e1ca2ffffa9f2d4383e30c8c2c0e0b02c964b
tree1340bca4491732e86abb8f22039c1673292f6945
parentcff50a591533bcc66588baaa555bb2790cc6d9fc
Attachment preview does not work for some source files such as JavaScript and Go (#29259).

Patch by Go MAEDA with the help of Stephan Wenzel's contribution.

git-svn-id: http://svn.redmine.org/redmine/trunk@18122 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/attachment.rb
lib/redmine/syntax_highlighting.rb
test/fixtures/files/hello.js [new file with mode: 0644]
test/unit/attachment_test.rb
test/unit/lib/redmine/syntax_highlighting/rouge_test.rb