From da4ce66feccee15d557c6bf3c2c842fef28746bc Mon Sep 17 00:00:00 2001 From: Rico Neitzel Date: Fri, 28 Apr 2017 00:38:22 +0200 Subject: [PATCH] Custom Username --- src/shell/packager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/packager.php b/src/shell/packager.php index 0e368f4..cf4da20 100644 --- a/src/shell/packager.php +++ b/src/shell/packager.php @@ -165,7 +165,7 @@ public function getAuthors() foreach ($this->getComposerJson()->authors as $author) { $authors["name"][$author->name] = $author->name; $authors["email"][$author->name] = $author->email; - $authors["user"][$author->name] = strstr(str_replace('.', '_', $author->email), '@', true); + $authors["user"][$author->name] = $author->user ? $author->user : strstr(str_replace('.', '_', $author->email), '@', true); } return $authors; }