Finance/Quote/DKB.pm: fix regex backref syntax
This commit is contained in:
parent
1400126804
commit
6ee59fb313
@ -121,7 +121,7 @@ sub dkb
|
|||||||
my @dates = $parser->findnodes( '//div[@class="exchangeLine"]/span');
|
my @dates = $parser->findnodes( '//div[@class="exchangeLine"]/span');
|
||||||
if (@dates) {
|
if (@dates) {
|
||||||
my $tradedate = $dates[0]->as_text;
|
my $tradedate = $dates[0]->as_text;
|
||||||
$tradedate =~ s/.*\|\s*(\d\d.*) $/\1/g;
|
$tradedate =~ s/.*\|\s*(\d\d.*) $/$1/g;
|
||||||
if (length($tradedate) < 10) {
|
if (length($tradedate) < 10) {
|
||||||
$tradedate = POSIX::strftime( '%d.%m.%Y', localtime());
|
$tradedate = POSIX::strftime( '%d.%m.%Y', localtime());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user