Skip to content

Commit

Permalink
fix whitelisted folders resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ololoken committed Jan 3, 2025
1 parent 5fb5bf2 commit 1b03f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/emscripten/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@
files.filter(file => {
const [fileName, ...path] = file.webkitRelativePath.split('/').reverse();
if (fileName.startsWith('.')) return false;
return path.some(folder => whitListed.includes(folder))
return path
.map(folder => folder.toLocaleLowerCase())
.some(folder => whitListed.includes(folder))
}).reduce((uploaded, file, _ignore, queue) => {
const [fileName, ...path] = file.webkitRelativePath.split('/').reverse();
const [ignore, ...relativePath] = path.reverse();
Expand Down

0 comments on commit 1b03f36

Please sign in to comment.