Okay, looks good. :)


On Tue, Jun 25, 2013 at 10:15 PM, Sebastian Hörberg <
notifications@github.com> wrote:

> In lib/reckon/ledger_parser.rb:
>
> > @@ -56,7 +56,7 @@ def balance(accounts)
> >
> >      def clean_money(money)
> >        return nil if money.nil? || money.length == 0
> > -      money.gsub(/[\$,]/, '').to_f
> > +      money.gsub(/[^0-9.-]/, '').to_f
>
> Hm.. I based that on this test
>
> irb(main):005:0> money = "10.0 SEK"=> "10.0 SEK"irb(main):006:0> money.gsub(/[^0-9-]/, '').to_f=> 100.0money.gsub(/[^0-9.-]/, '').to_f=> 10.0
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cantino/reckon/pull/11/files#r4884192>
> .
>