lib/remi/transform.rb in remi-0.2.29 vs lib/remi/transform.rb in remi-0.2.30

- old
+ new

@@ -115,11 +115,11 @@ super @len = len end def transform(value) - value.slice(0,@len) + (value || '').slice(0,@len) end end # Public: Transform used to concatenate a list of values, joined by a delimiter. # @@ -385,10 +385,10 @@ @to_replace = to_replace @replace_with = replace_with end def transform(value) - value.gsub(@to_replace, @replace_with) + (value || '').gsub(@to_replace, @replace_with) end end # Public: Checks to see if an email validates against a regex (imperfect) # and will substitute it with some value if not.