Skip to content

Commit 9bddfd8

Browse files
bug #444 Avoid remove author name (Hugo Santiago Becerra Adán)
This PR was merged into the 1.1-dev branch. Discussion ---------- Avoid remove author name Fixes part of #440 Commits ------- cd04581 Avoid remove author name
2 parents 58357d5 + cd04581 commit 9bddfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Flex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function configureProject(Event $event)
268268

269269
// 'name' and 'description' are only required for public packages
270270
// don't use $manipulator->removeProperty() for BC with Composer 1.0
271-
$contents = preg_replace('{^\s*+"(?:name|description)":.*,$\n}m', '', $manipulator->getContents());
271+
$contents = preg_replace(['{^\s*+"name":.*,$\n}m', '{^\s*+"description":.*,$\n}m'], '', $manipulator->getContents(), 1);
272272
file_put_contents($json->getPath(), $contents);
273273

274274
$this->updateComposerLock();

0 commit comments

Comments
 (0)