summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-10 09:21:01 -0400
committerEvan Prodromou <evan@status.net>2010-09-10 09:32:56 -0400
commitcfcb8603171cf9dd30fe54ee682a3666c0b21d7e (patch)
treed60068832443ee6cc745e775d49d28742b552b67
parent262eb7120f08a4a7c021c7c1df6a67e1b3c1d27d (diff)
use capturing parens for matching at-mentions in twitterstatusfetcher0.9.5
-rwxr-xr-xplugins/TwitterBridge/daemons/twitterstatusfetcher.php2
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('/(^|\&quot\;|\'|\(|\[|\{|\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;
}