diff --git a/lib/data_mapper/validation/macros.rb b/lib/data_mapper/validation/macros.rb index 36b96570..fc4c67ca 100644 --- a/lib/data_mapper/validation/macros.rb +++ b/lib/data_mapper/validation/macros.rb @@ -194,7 +194,7 @@ def validates_confirmation_of(*attribute_names) # property :zip_code, String # # validates_format_of :email, :as => :email_address - # validates_format_of :zip_code, :with => /^\d{5}$/ + # validates_format_of :zip_code, :with => /\A\d{5}\z/ # # # a call to valid? will return false unless: # # email is formatted like an email address