mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-13 05:51:46 -04: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…
Add table
Add a link
Reference in a new issue