Browse Source

build: merge double space in SHASUM validation logic (#29117)

Samuel Attard 3 years ago
parent
commit
8944bceae2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/release/release.js

+ 1 - 1
script/release/release.js

@@ -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;
   }, {});