We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6de7532 commit e5cf41eCopy full SHA for e5cf41e
1 file changed
lib/cache.js
@@ -58,7 +58,7 @@ module.exports = class Cache {
58
{ retries: 3 }
59
)
60
61
- const content = await convertStream(body)
+ let content = await convertStream(body)
62
const matches = content.match(/[^ ]*\.nupkg/gim)
63
64
if (matches.length === 0) {
@@ -67,8 +67,11 @@ module.exports = class Cache {
67
68
}
69
70
- const nuPKG = url.replace('RELEASES', matches[0])
71
- return content.replace(matches[0], nuPKG)
+ for (let i = 0; i < matches.length; i += 1) {
+ const nuPKG = url.replace('RELEASES', matches[i])
72
+ content = content.replace(matches[i], nuPKG)
73
+ }
74
+ return content
75
76
77
async refreshCache() {
0 commit comments