From: Mikael Nordfeldth Date: Sat, 22 Apr 2017 10:12:27 +0000 (+0200) Subject: Somewhat simpler regex. Thanks acct:takeshitakenji@gs.kawa-kun.com X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95f991cff33d3e4ed1c36d9de0b7b541ab28eec0;p=quix0rs-gnu-social.git Somewhat simpler regex. Thanks acct:takeshitakenji@gs.kawa-kun.com --- 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('/(?