Просмотр исходного кода

Small bug reported by Marko on mailinglist

Morten Brix Pedersen 25 лет назад
Родитель
Сommit
b9785c05af
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      pisg.pl

+ 1 - 1
pisg.pl

@@ -414,7 +414,7 @@ sub parse_file
 
                     foreach my $word (split(/[\s,!?.:;)(]+/, $saying)) {
                         # remove uninteresting words
-                        next unless (length($word) > $conf->{wordlength});
+                        next unless (length($word) >= $conf->{wordlength});
                         # ignore contractions
                         next if ($word =~ m/'..?$/);