From b53b7b1acd957c411c881a73e3b2379b0d79b443 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 7 Mar 2013 04:07:20 +0000 Subject: [PATCH] use %r{} instead of // at app/models/repository/subversion.rb Syntax highlight is broken in gedit 2.28.4 on CentOS 6. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11543 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/subversion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index 68853a3cf..10cd3b6d4 100644 --- a/app/models/repository/subversion.rb +++ b/app/models/repository/subversion.rb @@ -20,7 +20,7 @@ require 'redmine/scm/adapters/subversion_adapter' class Repository::Subversion < Repository attr_protected :root_url validates_presence_of :url - validates_format_of :url, :with => /\A(http|https|svn(\+[^\s:\/\\]+)?|file):\/\/.+/i + validates_format_of :url, :with => %r{\A(http|https|svn(\+[^\s:\/\\]+)?|file):\/\/.+}i def self.scm_adapter_class Redmine::Scm::Adapters::SubversionAdapter