aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2017-04-22 11:15:55 +0200
committerMikael Nordfeldth <mmn@hethane.se>2017-04-22 11:26:23 +0200
commit4827655632155a045e3fc12353cbdc6ce481bcb7 (patch)
tree71d03222de958ad1491cf809ad682318d7a4fd59
parent5e7a7701b94ee63927750064a39b188d9e17164a (diff)
downloadgnu-social-4827655632155a045e3fc12353cbdc6ce481bcb7.tar
gnu-social-4827655632155a045e3fc12353cbdc6ce481bcb7.zip
Fix URL mention regular expression in OStatusPlugin
-rw-r--r--plugins/OStatus/OStatusPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index 8a99620aef..053615bb06 100644
--- a/plugins/OStatus/OStatusPlugin.php
+++ b/plugins/OStatus/OStatusPlugin.php
@@ -300,7 +300,7 @@ class OStatusPlugin extends Plugin
static function extractUrlMentions($text)
{
$wmatches = array();
- $result = preg_match_all('!(?:^|\s+)@'.URL_REGEX_DOMAIN_NAME.'(?:/\w+)*)!',
+ $result = preg_match_all('/(?:^|\s+)@('.URL_REGEX_DOMAIN_NAME.'(?:\/\w+)*)/',
$text,
$wmatches,
PREG_OFFSET_CAPTURE);