Adding missing toLowerCase
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user