From b38f15b0b632cfb5eabb0e063b4c08dd507d0b90 Mon Sep 17 00:00:00 2001 From: Mercier Pierre-Olivier Date: Wed, 15 Jan 2014 00:40:41 +0100 Subject: [PATCH] Allow negative bonus --- process/files/intradata_get.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/files/intradata_get.pl b/process/files/intradata_get.pl index 7869a11..d4243dc 100644 --- a/process/files/intradata_get.pl +++ b/process/files/intradata_get.pl @@ -203,7 +203,7 @@ sub grades_new_bonus for my $line (@lines) { - if ($line =~ /^([a-z0-9_-]+)(?:\s*:\s*([0-9.]+))?$/) + if ($line =~ /^([a-z0-9_-]+)(?:\s*:\s*(-?[0-9.]+))?$/) { my $login = $1; my $tvalue = $2 // $value;