summaryrefslogtreecommitdiffstats
path: root/lib/redmine/unified_diff.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-03-07 04:07:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-03-07 04:07:09 +0000
commit39b959936061ed7cad36a969bddae22faf98ebb8 (patch)
tree9376b1f9a587442ec8d6bcaefec1fb09c398f5d1 /lib/redmine/unified_diff.rb
parent5984adc3df468e4c5def1d15cb1520f5b20f852b (diff)
downloadredmine-39b959936061ed7cad36a969bddae22faf98ebb8.tar.gz
redmine-39b959936061ed7cad36a969bddae22faf98ebb8.zip
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/trunk@11542 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/unified_diff.rb')
-rw-r--r--lib/redmine/unified_diff.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb
index 7215cb5b9..9917a554f 100644
--- a/lib/redmine/unified_diff.rb
+++ b/lib/redmine/unified_diff.rb
@@ -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+)? @@/