Finance/Quote/DKB.pm: fix regex backref syntax

This commit is contained in:
Matthias Merz 2020-06-03 21:49:47 +02:00
parent 1400126804
commit 6ee59fb313

View File

@ -121,7 +121,7 @@ sub dkb
my @dates = $parser->findnodes( '//div[@class="exchangeLine"]/span');
if (@dates) {
my $tradedate = $dates[0]->as_text;
$tradedate =~ s/.*\|\s*(\d\d.*) $/\1/g;
$tradedate =~ s/.*\|\s*(\d\d.*) $/$1/g;
if (length($tradedate) < 10) {
$tradedate = POSIX::strftime( '%d.%m.%Y', localtime());
}