diff options
author | Evan Prodromou <evan@status.net> | 2010-09-10 09:21:01 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-10 09:21:01 -0400 |
commit | 398df867de63febdc4c9ea68ad90e611d765b54d (patch) | |
tree | 8ff55f1cb1097681636db9a445c287e73d54c912 | |
parent | deb8f2a38b08bfe410d127d4779ced5433f67876 (diff) |
use capturing parens for matching at-mentions in twitterstatusfetcher
-rwxr-xr-x | plugins/TwitterBridge/daemons/twitterstatusfetcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php index b2bcc22bc..181be3dcf 100755 --- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php +++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php @@ -716,7 +716,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon common_log(LOG_WARNING, "No entities data for {$status->id}; trying to fake up links ourselves."); $text = common_replace_urls_callback($text, 'common_linkify'); $text = preg_replace('/(^|\"\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/e', "'\\1#'.TwitterStatusFetcher::tagLink('\\2')", $text); - $text = preg_replace('/(?:^|\s+)@([a-z0-9A-Z_]{1,64})/e', "'\\1@'.TwitterStatusFetcher::atLink('\\2')", $text); + $text = preg_replace('/(^|\s+)@([a-z0-9A-Z_]{1,64})/e', "'\\1@'.TwitterStatusFetcher::atLink('\\2')", $text); return $text; } |