diff options
Diffstat (limited to 'app/models/repository/subversion.rb')
-rw-r--r-- | app/models/repository/subversion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index c50e99ec8..9da9e543c 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 => /^(http|https|svn(\+[^\s:\/\\]+)?|file):\/\/.+/i + validates_format_of :url, :with => /\A(http|https|svn(\+[^\s:\/\\]+)?|file):\/\/.+/i def self.scm_adapter_class Redmine::Scm::Adapters::SubversionAdapter |