소스 검색

Patch from Phil:
patch-pisg-ignoreurls modifies parse_words() to ignore "words" that are
obviously the result of splitting apart a URL. This should close
Sourceforge bug #450863.

Morten Brix Pedersen 25 년 전
부모
커밋
fe876695fe
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      pisg.pl

+ 3 - 0
pisg.pl

@@ -687,6 +687,9 @@ sub parse_words
         # ignore contractions
         next if ($word =~ m/'..?$/o);
 
+	# Also ignore stuff from URLs.
+	next if ($word =~ m{https?|^//});
+
         $wordcount{$word}++ unless ($users->{ignores}{$word});
         $lastused{$word} = $nick;
     }