Remove multiline regular expression anchors from validations

This commit is contained in:
Tom Hughes 2013-06-26 22:42:02 +01:00
parent 36c220ca2b
commit 3875882172
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
class Tracetag < ActiveRecord::Base
self.table_name = "gpx_file_tags"
validates_format_of :tag, :with => /^[^\/;.,?]*$/
validates_format_of :tag, :with => /\A[^\/;.,?]*\z/
validates_length_of :tag, :within => 1..255
attr_accessible :tag