Adding missing toLowerCase
This commit is contained in:
parent
fc2dff56fa
commit
fa5d5aba36
2
lib/epub.d.ts
vendored
2
lib/epub.d.ts
vendored
@ -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
|
||||
*
|
||||
|
@ -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
@ -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