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

2
lib/epub.d.ts vendored
View File

@ -52,7 +52,7 @@ export declare class EPub {
flow: any[];
toc: any[];
version: string;
constructor(fname: any, imageroot: any, linkroot: any);
constructor(fname: string, imageroot?: string, linkroot?: string);
/**
* EPub#parse() -> undefined
*

View File

@ -183,7 +183,7 @@ class EPub {
return;
}
for (let file in this.zip.files) {
if (file == filename) {
if (file.toLowerCase() == filename) {
this.rootFile = file;
break;
}

File diff suppressed because one or more lines are too long

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;
}