X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd3db7df4d111d04fe121e3d91b06007b8a98e31..c7061991e74a20cc0576a3afa269821a87178f77:/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