summaryrefslogtreecommitdiffstats
path: root/tld.pl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tld.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tld.pl b/tld.pl
index 5fdbe68..ac684a5 100644
--- a/tld.pl
+++ b/tld.pl
@@ -45,7 +45,7 @@ for ($i = 0; $i < $#$table && found != 1; $i++)
{
$tabletype_enc = encode("utf8", $$table[$i+1]);
#print "$$table[$i+1] is $$table[$i+2]\n";
- if ($tabletype_enc =~ /$type/)
+ if ($tabletype_enc =~ /^$type$/)
{
($result = $$table[$i+2]) =~ s/^ //;
print "$type is ";