1
0
Fork 0
Matthew "Juniper" Barlett 2016-08-31 18:38:10 -05:00 committed by Jordi Boggiano
parent ac41bb0615
commit 09dad8a018
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ EOT
*/ */
public function parseAuthorString($author) public function parseAuthorString($author)
{ {
if (preg_match('/^(?P<name>[- \.,\p{L}\p{N}\'\"\(\)]+) <(?P<email>.+?)>$/u', $author, $match)) { if (preg_match('/^(?P<name>[- .,\p{L}\p{N}\'"()]+) <(?P<email>.+?)>$/u', $author, $match)) {
if ($this->isValidEmail($match['email'])) { if ($this->isValidEmail($match['email'])) {
return array( return array(
'name' => trim($match['name']), 'name' => trim($match['name']),