X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd3db7df4d111d04fe121e3d91b06007b8a98e31..fb4ea1a02ac5dc1b0ef444e0d63fafa8f756fa8d:/app/models/tracetag.rb diff --git a/app/models/tracetag.rb b/app/models/tracetag.rb index d4298f9df..9d2195920 100644 --- a/app/models/tracetag.rb +++ b/app/models/tracetag.rb @@ -4,5 +4,5 @@ class Tracetag < ActiveRecord::Base belongs_to :trace, :foreign_key => "gpx_id" validates :trace, :associated => true - validates :tag, :length => 1..255, :format => /\A[^\/;.,?]*\z/ + validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z} end