We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e5af7 commit e0e96bdCopy full SHA for e0e96bd
.scripts/setup.php
@@ -147,6 +147,7 @@ public function __construct() {
147
148
$this->delete( "{$path}/.git" );
149
exec( 'git init' );
150
+ exec( 'git branch -m main' );
151
152
echo 'Setting up Composer...' . PHP_EOL . PHP_EOL;
153
@@ -339,9 +340,7 @@ public function isPublic() {
339
340
* @return string
341
*/
342
public function toAlphaNumeric( $string, $extraChars = '-_' ) {
- $pattern = preg_quote( '/[^a-zA-Z0-9' . $extraChars . ']/', '/' );
343
-
344
- return preg_replace( $pattern, '', $string );
+ return preg_replace( '/[^a-zA-Z0-9' . $extraChars . ']/', '', $string );
345
346
}
347
0 commit comments