diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-03-07 04:07:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-03-07 04:07:09 +0000 |
commit | 39b959936061ed7cad36a969bddae22faf98ebb8 (patch) | |
tree | 9376b1f9a587442ec8d6bcaefec1fb09c398f5d1 /lib/redmine/unified_diff.rb | |
parent | 5984adc3df468e4c5def1d15cb1520f5b20f852b (diff) | |
download | redmine-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.rb | 2 |
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+)? @@/ |