Browse Source

Fixed email validation

Andrew Kane 7 years ago
parent
commit
777a987b18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/blazer/check.rb

+ 1 - 1
app/models/blazer/check.rb

@@ -77,7 +77,7 @@ module Blazer
       end
       end
 
 
       def validate_emails
       def validate_emails
-        unless split_emails.all? { |e| e =~ /\A.+@.+\..+\z/ }
+        unless split_emails.all? { |e| e =~ /\A\S+@\S+\.\S+\z/ }
           errors.add(:base, "Invalid emails")
           errors.add(:base, "Invalid emails")
         end
         end
       end
       end