build: merge double space in SHASUM validation logic (#29117)
This commit is contained in:
parent
a51aaeb28f
commit
8944bceae2
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ async function getShaSumMappingFromUrl (shaSumFileUrl, fileNamePrefix) {
|
|||
const response = await got(shaSumFileUrl);
|
||||
const raw = response.body;
|
||||
return raw.split('\n').map(line => line.trim()).filter(Boolean).reduce((map, line) => {
|
||||
const [sha, file] = line.split(' ');
|
||||
const [sha, file] = line.replace(' ', ' ').split(' ');
|
||||
map[file.slice(fileNamePrefix.length)] = sha;
|
||||
return map;
|
||||
}, {});
|
||||
|
|
Loading…
Add table
Reference in a new issue