summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-08 10:59:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-08 10:59:31 +0000
commit147e7a8d61722e99e31cf881b3fc0b8e9c4e6a11 (patch)
tree27fa67f1a9684246ed489717195c84ba2f4e6c7b /app/models/repository
parent4c6dfdf95fcb1ae4b014ea595d1f6d5bad64eb48 (diff)
downloadredmine-147e7a8d61722e99e31cf881b3fc0b8e9c4e6a11.tar.gz
redmine-147e7a8d61722e99e31cf881b3fc0b8e9c4e6a11.zip
Use \A and \z in validation regexps.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10960 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r--app/models/repository/subversion.rb2
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