diff options
author | Eric Helgeson <erichelgeson@gmail.com> | 2009-10-19 13:11:55 -0400 |
---|---|---|
committer | Eric Helgeson <erichelgeson@gmail.com> | 2009-10-19 13:11:55 -0400 |
commit | 9d0e37c4e847f312c39eaf15deb95ff3777c13a6 (patch) | |
tree | 1110a625321b38547c49ddef3eff42e08378b448 | |
parent | acf2b19463d1a03b52f7db81eaade5eb9ebab662 (diff) |
Utilize NICKNAME_FMT constant when creating at replies0.8.2rc1
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 9b299cb14..047faeef0 100644 --- a/lib/util.php +++ b/lib/util.php @@ -391,7 +391,7 @@ function common_render_content($text, $notice) { $r = common_render_text($text); $id = $notice->profile_id; - $r = preg_replace('/(^|\s+)@([A-Za-z0-9]{1,64})/e', "'\\1@'.common_at_link($id, '\\2')", $r); + $r = preg_replace('/(^|\s+)@(['.NICKNAME_FMT.']{1,64})/e', "'\\1@'.common_at_link($id, '\\2')", $r); $r = preg_replace('/^T ([A-Z0-9]{1,64}) /e', "'T '.common_at_link($id, '\\1').' '", $r); $r = preg_replace('/(^|\s+)@#([A-Za-z0-9]{1,64})/e', "'\\1@#'.common_at_hash_link($id, '\\2')", $r); $r = preg_replace('/(^|\s)!([A-Za-z0-9]{1,64})/e', "'\\1!'.common_group_link($id, '\\2')", $r); |