Use \A and \z in validation regexps.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10960 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-12-08 10:59:31 +00:00
parent 4c6dfdf95f
commit 147e7a8d61
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class Wiki < ActiveRecord::Base
acts_as_watchable
validates_presence_of :start_page
validates_format_of :start_page, :with => /^[^,\.\/\?\;\|\:]*$/
validates_format_of :start_page, :with => /\A[^,\.\/\?\;\|\:]*\z/
safe_attributes 'start_page'