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

- old
+ new

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