Archived
1
0
Fork 0

Search globing if ref is defined

This commit is contained in:
Mercier Pierre-Olivier 2013-09-26 11:38:17 +02:00
commit 20d78c5dae

View file

@ -342,6 +342,8 @@ sub compute ($$$;$$$)
$ref =~ s/\$LOGIN/$login/;
}
if (defined $ref)
{
my $glob = Tinyglob::tinyglob($ref);
if ($glob ne $ref)
{
@ -349,6 +351,7 @@ sub compute ($$$;$$$)
$value += $ids->{$_} while (grep { /^$glob$/ } keys %$ids);
$ids->{ $ref } = $value;
}
}
my $ret = undef;