From 7773fb6d8f26f2d2331a4bb394ed164160a9a210 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 27 May 2012 13:58:32 +0200 Subject: [PATCH] Match TLHs correctly, not only partially. The TLH was checked to match the beginning of the newsgroup name, not the whole TLH part. So the TLH "de" would match not only "de.test", but also "denver.test", which was not the desired outcome. Signed-off-by: Thomas Hochstein --- gatherstats.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gatherstats.pl b/gatherstats.pl index d2d4faa..6e41485 100755 --- a/gatherstats.pl +++ b/gatherstats.pl @@ -85,9 +85,15 @@ if ($Conf{'TLH'}) { } # strip whitespace $TLH =~ s/\s//g; + # add trailing dots if none are present yet + # (using negative look-behind assertions) + $TLH =~ s/(?