From a8c5c8c0ba4deba4f396f6d491970256907569b3 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 21 Nov 2006 03:52:20 +0000 Subject: [PATCH] improve regexp --- IkiWiki/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 54c526c2c..d29151ace 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -657,7 +657,7 @@ sub userlink ($) { #{{{ my $display=$oid->display; # Convert "user.somehost.com" to "user [somehost.com]". if ($display !~ /\[/) { - $display=~s/^(.*?)\.([^.]+.[^.]+)$/$1 [$2]/; + $display=~s/^(.*?)\.([^.]+\.[a-z]+)$/$1 [$2]/; } return "".escapeHTML($display).""; } -- 2.26.2