projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc0b70e
)
improve regexp
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 21 Nov 2006 03:52:20 +0000
(
03:52
+0000)
committer
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 21 Nov 2006 03:52:20 +0000
(
03:52
+0000)
IkiWiki/CGI.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/CGI.pm
b/IkiWiki/CGI.pm
index 54c526c2cbf6402b4cf8205d6cb1caef8db48dac..d29151ace59356bf2f548592f08f2d46da3ca83a 100644
(file)
--- 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>";
}