File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1121,7 +1121,7 @@ exports.fetch = fetch;
1121
1121
async function parseVersion ( version ) {
1122
1122
const manifest = 'https://dl.bintray.com/shivammathur/php/php-versions.json' ;
1123
1123
switch ( true ) {
1124
- case / l a t e s t | \d . x / . test ( version ) :
1124
+ case / ^ ( l a t e s t | \d + \. x ) $ / . test ( version ) :
1125
1125
return JSON . parse ( await fetch ( manifest ) ) [ version ] ;
1126
1126
default :
1127
1127
switch ( true ) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export async function fetch(url: string): Promise<string> {
69
69
export async function parseVersion ( version : string ) : Promise < string > {
70
70
const manifest = 'https://dl.bintray.com/shivammathur/php/php-versions.json' ;
71
71
switch ( true ) {
72
- case / l a t e s t | \d . x / . test ( version ) :
72
+ case / ^ ( l a t e s t | \d + \. x ) $ / . test ( version ) :
73
73
return JSON . parse ( await fetch ( manifest ) ) [ version ] ;
74
74
default :
75
75
switch ( true ) {
You can’t perform that action at this time.
0 commit comments