Commit 95f991cf by Mikael Nordfeldth

Somewhat simpler regex. Thanks

1 parent c4541d8f
......@@ -264,7 +264,8 @@ class OStatusPlugin extends Plugin
static function extractWebfingerIds($text)
$wmatches = array();
$result = preg_match_all('/(?:^|\s+)@((?:\w+[\w\-\_\.]?)*(?:[\w\-\_\.]*\w+)@'.URL_REGEX_DOMAIN_NAME.')/',
// Maybe this should harmonize with lib/nickname.php and Nickname::WEBFINGER_FMT
$result = preg_match_all('/(?<!\S)@((?:\w+[\w\-\_\.]*)?\w+@'.URL_REGEX_DOMAIN_NAME.')/',
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!