Adding missing toLowerCase

This commit is contained in:
Fabian Stamm
2018-09-17 22:38:05 +02:00
parent fc2dff56fa
commit fa5d5aba36
4 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@ export class EPub {
toc = [];
version: string;
constructor(fname, imageroot, linkroot) {
constructor(fname: string, imageroot?: string, linkroot?: string) {
this.filename = fname;
@ -231,7 +231,7 @@ export class EPub {
}
for (let file in this.zip.files) {
if (file == filename) {
if (file.toLowerCase() == filename) {
this.rootFile = file;
break;
}