loosen restrictions on names for atlinks

darcs-hash:20080529171604-84dde-63bf0f261fe340df7bfec22a0b64daf2ca42615e.gz
This commit is contained in:
Evan Prodromou 2008-05-29 13:16:04 -04:00
parent 9d9588a3de
commit 96c04a5414

View File

@ -353,7 +353,7 @@ function common_render_content($text, $notice=NULL) {
$r = htmlspecialchars($text);
if ($notice) {
$id = $notice->profile_id;
$r = preg_replace('/\b@([\w-]{1-64})\b/e', "@common_at_link($id, '\\1')", $r);
$r = preg_replace('/\b@([\w-]+)\b/e', "@common_at_link($id, '\\1')", $r);
}
# XXX: # tags
# XXX: machine tags