Fix support to parse master in php-version input

This commit is contained in:
Shivam Mathur
2025-12-18 21:34:05 +05:30
parent f72fc99524
commit 5efa2a774e
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -62,7 +62,7 @@ export async function getManifestURLS(): Promise<string[]> {
*/
export async function parseVersion(version: string): Promise<string> {
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()) {
const fetchResult = await fetch.fetch(manifestURL);
if (fetchResult['data'] ?? false) {