]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/tracetag.rb
Use correct title in og:title for pages with no title
[rails.git] / app / models / tracetag.rb
index d4298f9df24adfda803382664432693fc0015254..9d21959205cbcd12edb261fa7ea81fccd4c0fc01 100644 (file)
@@ -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