mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
Merge pull request #1 from giltene/master
Match filename extension only at the end of the filename
This commit is contained in:
commit
d166c128e9
2 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ function getDownloadInfo(refs, version) {
|
||||||
let versionMap = new Map();
|
let versionMap = new Map();
|
||||||
// Filter by platform
|
// Filter by platform
|
||||||
refs.forEach(ref => {
|
refs.forEach(ref => {
|
||||||
if (ref.indexOf(extension) < 0) {
|
if (!ref.endsWith(extension + '">')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// If we haven't returned, means we're looking at the correct platform
|
// If we haven't returned, means we're looking at the correct platform
|
||||||
|
|
|
@ -192,7 +192,7 @@ function getDownloadInfo(
|
||||||
|
|
||||||
// Filter by platform
|
// Filter by platform
|
||||||
refs.forEach(ref => {
|
refs.forEach(ref => {
|
||||||
if (ref.indexOf(extension) < 0) {
|
if (!ref.endsWith(extension + '">')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue