mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Match extension only at end of line
This commit is contained in:
parent
204b974cf4
commit
dd6028e73c
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ function getDownloadInfo(
|
|||
|
||||
// Filter by platform
|
||||
refs.forEach(ref => {
|
||||
if (ref.indexOf(extension) < 0) {
|
||||
if (!ref.endsWith(extension + '">')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue