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[];
|
flow: any[];
|
||||||
toc: any[];
|
toc: any[];
|
||||||
version: string;
|
version: string;
|
||||||
constructor(fname: any, imageroot: any, linkroot: any);
|
constructor(fname: string, imageroot?: string, linkroot?: string);
|
||||||
/**
|
/**
|
||||||
* EPub#parse() -> undefined
|
* EPub#parse() -> undefined
|
||||||
*
|
*
|
||||||
|
@ -183,7 +183,7 @@ class EPub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (let file in this.zip.files) {
|
for (let file in this.zip.files) {
|
||||||
if (file == filename) {
|
if (file.toLowerCase() == filename) {
|
||||||
this.rootFile = file;
|
this.rootFile = file;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -81,7 +81,7 @@ export class EPub {
|
|||||||
toc = [];
|
toc = [];
|
||||||
|
|
||||||
version: string;
|
version: string;
|
||||||
constructor(fname, imageroot, linkroot) {
|
constructor(fname: string, imageroot?: string, linkroot?: string) {
|
||||||
|
|
||||||
this.filename = fname;
|
this.filename = fname;
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ export class EPub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (let file in this.zip.files) {
|
for (let file in this.zip.files) {
|
||||||
if (file == filename) {
|
if (file.toLowerCase() == filename) {
|
||||||
this.rootFile = file;
|
this.rootFile = file;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user