1
0
Fork 0

Merge pull request #548 from pocallaghan/master

Allows apostrophe in author name
pull/549/merge
Jordi Boggiano 2012-04-08 11:36:17 -07:00
commit 585a9be2ac
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class InitCommand extends Command
public function parseAuthorString($author)
{
if (preg_match('/^(?P<name>[- \.,\w]+) <(?P<email>.+?)>$/u', $author, $match)) {
if (preg_match('/^(?P<name>[- \.,\w\']+) <(?P<email>.+?)>$/u', $author, $match)) {
if (!function_exists('filter_var') || $match['email'] === filter_var($match['email'], FILTER_VALIDATE_EMAIL)) {
return array(
'name' => trim($match['name']),