mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 18:01:46 +00:00
Match extension only at end of line
This commit is contained in:
parent
dd6028e73c
commit
25d3249d32
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user