patch to extract file from other location

This commit is contained in:
mahabaleshwars 2024-03-14 14:39:38 +05:30
parent 5896cecc08
commit a847c75719
3 changed files with 17 additions and 0 deletions

View file

@ -88355,6 +88355,11 @@ exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
function getVersionFromFileContent(content, distributionName, versionFile) {
var _a, _b, _c, _d, _e;
let javaVersionRegExp;
const path = __nccwpck_require__(1017);
function getFileName(versionFile) {
return path.basename(versionFile);
}
const versionFileName = getFileName(versionFile);
if (versionFile == '.tool-versions') {
javaVersionRegExp =
/^(java\s+)(?:\S*-)?v?(?<version>(\d+)(\.\d+)?(\.\d+)?(\+\d+)?(-ea(\.\d+)?)?)$/m;