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+)? @@/