Remove multiline regular expression anchors from validations
This commit is contained in:
parent
36c220ca2b
commit
3875882172
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue