Permalink
Browse files

Fixed problem w/ regex, removed scaling

[git-p4: depot-paths = "//src/ZenGraph/dev/": change = 738]
  • Loading branch information...
1 parent 75d22b1 commit b21afcef66755c5905d3555cea7c8c8515fa3ea1 @zenspider zenspider committed Mar 20, 2001
Showing with 4 additions and 7 deletions.
  1. +4 −7 examples/mail.conf
View
@@ -1,5 +1,8 @@
# -*- perl -*-
+sub process_file {
+}
+
sub process_line {
# parses email 'Date:' lines
@@ -17,16 +20,10 @@ sub process_line {
}
# progress tag mail: parses <count>: <TAG>
- if (m/^\s*(\d+): (F IX|H ACK|T ODO|R EFACTOR|R ETIRE|D OC)/x) {
+ if (m/^\s*(\d+):\s*(F IX|H ACK|T ODO|R EFACTOR|R ETIRE|D OC)/x) {
my $tag = $2;
my $count = $1;
- # scale the doc tag because there are so many.
- if ($tag =~ m/D OC/x) {
- $tag = 'DOC_/_5';
- $count /= 5;
- }
-
$data->{$date}{$tag} = $count;
}
}

0 comments on commit b21afce

Please sign in to comment.