Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit e1de703

Browse filesBrowse files
committed
Try to fix #190 by fixing lowercase package name
1 parent ad1fb85 commit e1de703
Copy full SHA for e1de703

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Installer/NewCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/NewCommand.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ private function fixComposerPackageName($name)
397397
{
398398
return strtolower(
399399
preg_replace(
400-
array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'),
401-
array('\\1-\\2', '\\1-\\2'),
400+
array('~[^\w.-]~iu', '~([A-Z]+)([A-Z][a-z])~u', '~([a-z\d])([A-Z])~u'),
401+
array('', '\\1-\\2', '\\1-\\2'),
402402
strtr($name, '-', '.')
403403
)
404404
);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.