lib/remi/transform.rb in remi-0.2.23 vs lib/remi/transform.rb in remi-0.2.24

- old
+ new

@@ -143,10 +143,10 @@ end end def validate_email(substitute='') memoize_as_lambda(__method__, substitute) do |(msubstitute), larg| - larg.match(/^.+@[a-z0-9\-\.]+$/i) ? larg : msubstitute + larg.match(/^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,}$/i) ? larg : msubstitute end end end end