]> source.dussan.org Git - redmine.git/commitdiff
Merged r11542 from trunk to 2.3-stable.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 7 Mar 2013 10:29:50 +0000 (10:29 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 7 Mar 2013 10:29:50 +0000 (10:29 +0000)
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

lib/redmine/unified_diff.rb

index 7215cb5b927920ec30e22bd1338c4e5e418e60c9..9917a554fbc7f29eb86813fc0887176ac77085d4 100644 (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+)? @@/