Fix support to parse master in php-version input
This commit is contained in:
parent
f72fc99524
commit
5efa2a774e
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -62,7 +62,7 @@ export async function getManifestURLS(): Promise<string[]> {
|
||||||
*/
|
*/
|
||||||
export async function parseVersion(version: string): Promise<string> {
|
export async function parseVersion(version: string): Promise<string> {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case /^(latest|lowest|highest|nightly|\d+\.x)$/.test(version):
|
case /^(latest|lowest|highest|nightly|master|\d+\.x)$/.test(version):
|
||||||
for (const manifestURL of await getManifestURLS()) {
|
for (const manifestURL of await getManifestURLS()) {
|
||||||
const fetchResult = await fetch.fetch(manifestURL);
|
const fetchResult = await fetch.fetch(manifestURL);
|
||||||
if (fetchResult['data'] ?? false) {
|
if (fetchResult['data'] ?? false) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue