Skip to content

Commit

Permalink
Clean up regex in InitCommand::parseAuthorString
Browse files Browse the repository at this point in the history
  • Loading branch information
emeraldinspirations authored and Seldaek committed Sep 2, 2016
1 parent ac41bb0 commit 09dad8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function ($value) use ($self, $minimumStability) {
*/
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'])) {
return array(
'name' => trim($match['name']),
Expand Down

0 comments on commit 09dad8a

Please sign in to comment.