needs ungreedy, to not include quotes

This commit is contained in:
ralf 2023-06-28 07:48:51 +02:00
parent c8bee10afc
commit ee51d2890c

View File

@ -69,7 +69,7 @@ class Avatar
{
return [];
}
if (preg_match("/^\"?'?(.*)'?\"?\s+<([^<>'\"]+)>$/", $address, $matches))
if (preg_match("/^\"?'?(.*?)'?\"?\s+<([^<>'\"]+)>$/", $address, $matches))
{
if (($parts = preg_split('/[, ]+/', $matches[1])))
{