mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
Fix typo
This commit is contained in:
parent
4ff6288d3f
commit
8cf390d2b5
1 changed files with 1 additions and 1 deletions
2
test/fixtures/readProjectFile.js
vendored
2
test/fixtures/readProjectFile.js
vendored
|
@ -7,7 +7,7 @@ module.exports = {
|
|||
},
|
||||
extractProjectJson: function (path) {
|
||||
const zip = new AdmZip(path);
|
||||
const projectEntry = zip.getEntries().find(item => item.entryName.match(/project\.json/))[0];
|
||||
const projectEntry = zip.getEntries().find(item => item.entryName.match(/project\.json/));
|
||||
if (projectEntry) {
|
||||
return JSON.parse(zip.readAsText(projectEntry.entryName, 'utf8'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue