Change interpretation of --checkgroups to template
[usenet/newsstats.git] / NewsStats.pm
index f0a4066..428719e 100644 (file)
@@ -230,8 +230,9 @@ sub ReadGroupList {
   my %ValidGroups;
   open (my $LIST,"<$Filename") or &Bleat(2,"Cannot read $Filename: $!");
   while (<$LIST>) {
-    s/^(\S+).*$/$1/;
+    s/^\s*(\S+).*$/$1/;
     chomp;
+    next if /^$/;
     $ValidGroups{$_} = '1';
   };
   close $LIST;
This page took 0.009348 seconds and 4 git commands to generate.