1
0
Fork 0

Allow numeric characters

pull/3953/head
Rob Bast 2015-04-20 13:09:25 +02:00
parent b99d9465c1
commit c7d387f599
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class InitCommand extends Command
public function parseAuthorString($author)
{
if (preg_match('/^(?P<name>[- \.,\p{L}\']+) <(?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']),