Skip to content

Commit

Permalink
Merge pull request #2 from tkawa/patch-1
Browse files Browse the repository at this point in the history
Fix unnecessary substitution
  • Loading branch information
rept committed Nov 20, 2014
2 parents ee711ee + 439227e commit a872f82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/zoho_invoice/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def build_attributes(attrs)
end

def stringify_object_values(obj)
return obj if obj.is_a?(String)
return(obj.to_s.gsub(/[`~!@#$%^&*()+=\\|\[{\]}'";:\/?><]/, ' ').squeeze(' ').strip) unless(obj.is_a?(Array) || obj.is_a?(Hash))
res = nil
if(obj.is_a?(Array))
Expand Down

0 comments on commit a872f82

Please sign in to comment.