aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-21 03:52:20 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-21 03:52:20 +0000
commita8c5c8c0ba4deba4f396f6d491970256907569b3 (patch)
treef2d8d3d254d602d5fc10fe6ad979924a5410c9f4
parentfc0b70e700ca9d029e5aedd013b00de0cf793993 (diff)
downloadikiwiki-a8c5c8c0ba4deba4f396f6d491970256907569b3.tar
ikiwiki-a8c5c8c0ba4deba4f396f6d491970256907569b3.tar.gz
improve regexp
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
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 "<a href=\"$user\">".escapeHTML($display)."</a>";
}