Commit 2d5ec077 authored by Robert Ricci's avatar Robert Ricci

Change total score line so that it looks nicer in a commit message

parent 5a107aca
......@@ -3,4 +3,4 @@ HW #1 Score:
XX / 10 : Submitted a PDF
======
Total: XX / YY
Total score: XX / YY
......@@ -3,4 +3,4 @@ HW #1 Score:
XX / 10 : Submitted a PDF
======
Total: XX / YY
Total score: XX / YY
......@@ -22,9 +22,9 @@ foreach my $line (@scorefile) {
if ($possible) {
$total_possible += $possible;
}
} elsif ($line =~ /^\s*Total:\s*(XX|\d+)?\s*\/\s*(YY|\d+)?/) {
} elsif ($line =~ /^\s*Total score:\s*(XX|\d+)?\s*\/\s*(YY|\d+)?/) {
$found_totalline = 1;
$line = "Total: $total / $total_possible\n";
$line = "Total score: $total / $total_possible\n";
print $line;
}
}
......@@ -34,7 +34,7 @@ if ($total_possible == 0) {
}
if (!$found_totalline) {
my $line = "Total: $total / $total_possible";
my $line = "Total score: $total / $total_possible";
push @scorefile, $line;
print $line;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment