From 33e42ce15489fc4a8366e0948cfcb7894f2fbf64 Mon Sep 17 00:00:00 2001 From: josefergimenez <49170753+josefergimenez@users.noreply.github.com> Date: Tue, 22 Apr 2025 10:15:48 -0300 Subject: [PATCH] Update has_validated_attributes.rb --- lib/has_validated_attributes.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/has_validated_attributes.rb b/lib/has_validated_attributes.rb index 5b7c4cb..79b98f9 100644 --- a/lib/has_validated_attributes.rb +++ b/lib/has_validated_attributes.rb @@ -53,11 +53,11 @@ def validate_each(record, attribute, value) rails_name: { format: { with: /\A[a-zA-Z\_]*?\z/u, message: "should only include underscores and letters" } }, ## the regex for emails comes from ## http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx/ - email: { length: { maximum: 63 }, format: { with: /\A((?!\.)("([^"\\r\\n]|\\["\\r\\n])*"|[-a-z0-9!#$%&'*+\/=?^_`{|}~"]+(?:\.[-a-z0-9!#$%&'*+\/=?^_`{|}~"]+)*)(?