Ticket #5015: mweather-bbccurrent-temp.patch

File mweather-bbccurrent-temp.patch, 548 bytes (added by otto at kolsi dot fi, 18 years ago)
  • mythweather/mythweather/scripts/uk_bbc/bbccurrentxml.pl

     
    178178            $datavalue =~ s/^.*?\((-?\d{1,2}).*/$1/;
    179179        }
    180180        elsif ($units =~ /SI/) {
    181             $datavalue =~ s/^-?(\d{1,2}).*/$1/;
     181            $datavalue =~ s/^(-?\d{1,2}).*/$1/;
    182182        }
    183183        $datalabel = "temp";
    184184    }