Skip to content

Commit

Permalink
Fix case insensitive folder matching
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfcmf committed Nov 27, 2019
1 parent 5408480 commit e2b7e7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ export default class UploadHandler {
}

private hasFolderCaseInsensitive(zip: JSZip, path: string): boolean {
if (!path.endsWith("/")) {
path += "/";
}
const caseInsensitiveFolderName = new RegExp(
`^${escapeStringRegexp(path)}$`,
"i"
Expand Down

0 comments on commit e2b7e7f

Please sign in to comment.