Allow skins that are not in a /dir

Loading skins other than the default was broken
This commit is contained in:
Jordan Eldredge 2015-07-07 21:45:50 -07:00
parent 49f34b4086
commit dea6e43f96

View file

@ -78,7 +78,7 @@ return {
_findFileInZip: function(name, zip) {
// Note: "."s in file names are actually treated as wildcards
return zip.file(new RegExp("/" + name, 'i'))[0];
return zip.file(new RegExp("(/|^)" + name, 'i'))[0];
},
_createNewStyleNode: function() {