You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/Symfony/Installer/NewCommand.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ protected function checkSymfonyVersionIsInstallable()
111
111
}
112
112
113
113
// validate semver syntax
114
-
if (!preg_match('/^2\.\d(?:\.\d{1,2})?(-(dev|BETA\d*))?$/', $this->version)) {
114
+
if (!preg_match('/^2\.\d(?:\.\d{1,2})?(-(dev|BETA\d*))?$/i', $this->version)) {
115
115
thrownew \RuntimeException('The Symfony version should be 2.N or 2.N.M, where N = 0..9 and M = 0..99. The special "-dev" or "-BETA" suffixes are also supported.');
116
116
}
117
117
@@ -171,7 +171,7 @@ protected function checkSymfonyVersionIsInstallable()
171
171
}
172
172
173
173
// "-dev" versions are not supported because Symfony doesn't provide packages for them
174
-
if (preg_match('/^.*\-dev$/', $this->version)) {
174
+
if (preg_match('/^.*\-dev$/i', $this->version)) {
175
175
thrownew \RuntimeException(sprintf(
176
176
"The selected version (%s) cannot be installed because it hasn't\n".
177
177
"been published as a package yet. Read the following article for\n".
@@ -183,7 +183,7 @@ protected function checkSymfonyVersionIsInstallable()
183
183
}
184
184
185
185
// warn the user when downloading an unstable version
186
-
if (preg_match('/^.*\-BETA\d*$/', $this->version)) {
186
+
if (preg_match('/^.*\-BETA\d*$/i', $this->version)) {
187
187
$this->output->writeln("\n <bg=red> WARNING </> You are downloading an unstable Symfony version.");
0 commit comments