4
0
Morten Brix Pedersen 22 жил өмнө
parent
commit
d5f81b900d

+ 1 - 1
modules/Pisg/Parser/Logfile.pm

@@ -543,7 +543,7 @@ sub _parse_words
 
     study $saying;
     $saying =~ s/[\s,!?.:;)(\"]+//o;
-    while ($saying =~ s/([^\s,!?.:;)(\"]+)[\s,!?.:;)(\"]+//og) {
+    while ($saying =~ s/([^\s,!?.:;)(\"]+)([\s,!?.:;)(\"]+)?//og) {
         $word = $1;
         $stats->{words}{$nick}++;
         $stats->{word_times}{$nick}[$tod]++;