From 95f991cff33d3e4ed1c36d9de0b7b541ab28eec0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 22 Apr 2017 12:12:27 +0200 Subject: [PATCH] Somewhat simpler regex. Thanks acct:takeshitakenji@gs.kawa-kun.com --- plugins/OStatus/OStatusPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 4a1d7683cc..1750016ace 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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('/(?