Merged r11542 from trunk to 2.3-stable.

use %r{} instead of // at lib/redmine/unified_diff.rb.

Syntax highlight is broken in gedit 2.28.4 on CentOS 6.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11548 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-03-07 10:29:50 +00:00
parent 35b17d3bdc
commit 0e92038047
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ module Redmine
@parsing = true
end
else
if line =~ /^[^\+\-\s@\\]/
if line =~ %r{^[^\+\-\s@\\]}
@parsing = false
return false
elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/