Skip to content

Commit

Permalink
Merge pull request #11 from borodiychuk/patch-1
Browse files Browse the repository at this point in the history
Fix ticket #10, convert to string before normalize
  • Loading branch information
yolk committed Jan 7, 2013
2 parents 04b26d7 + adb3509 commit c95116a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/valvat/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.split(vat)
end

def self.normalize(vat)
vat.upcase.gsub(NORMALIZE_PATTERN, "")
vat.to_s.upcase.gsub(NORMALIZE_PATTERN, "")
end

def self.vat_country_to_iso_country(vat_country)
Expand Down

0 comments on commit c95116a

Please sign in to comment.