mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -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) {
|
extractProjectJson: function (path) {
|
||||||
const zip = new AdmZip(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) {
|
if (projectEntry) {
|
||||||
return JSON.parse(zip.readAsText(projectEntry.entryName, 'utf8'));
|
return JSON.parse(zip.readAsText(projectEntry.entryName, 'utf8'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue