Skip to content

Commit

Permalink
Recursive call filter: allow floating point values and better regex h…
Browse files Browse the repository at this point in the history
…andling
  • Loading branch information
Gabriel Corona committed Jul 23, 2015
1 parent 044f09b commit 54bede2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stackcollapse-recursive.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

while(<>) {
chomp;
if(/^(.*)\s([0-9]*)/) {
my @stack = split(/;/, $1);
my $value = $2;
my ($stack_, $value) = (/^(.*)\s+?(\d+(?:\.\d*)?)$/);
if ($stack_) {
my @stack = split(/;/, $stack_);

my @result = ();
my $i;
Expand Down

0 comments on commit 54bede2

Please sign in to comment.