]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset_comment.rb
Rubocop fixes for ruby 2.5
[rails.git] / app / models / changeset_comment.rb
index 756fda14c6e7b85adb198d89ddf002316ce9d740..a0ad6f2ea4a17dc5f3db58d3d01c1bb4d646886b 100644 (file)
@@ -28,7 +28,7 @@ class ChangesetComment < ActiveRecord::Base
   validates :changeset, :presence => true, :associated => true
   validates :author, :presence => true, :associated => true
   validates :visible, :inclusion => [true, false]
-  validates :body, :format => /\A[^\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff]*\z/
+  validates :body, :characters => true
 
   # Return the comment text
   def body