diff --git a/lib/epub.d.ts b/lib/epub.d.ts index 489fa3b..6c2d04a 100644 --- a/lib/epub.d.ts +++ b/lib/epub.d.ts @@ -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 * diff --git a/lib/epub.js b/lib/epub.js index 96cf4e1..9defb27 100644 --- a/lib/epub.js +++ b/lib/epub.js @@ -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; } diff --git a/lib/epub.js.map b/lib/epub.js.map index 39aa916..4cbd736 100644 --- a/lib/epub.js.map +++ b/lib/epub.js.map @@ -1 +1 @@ -{"version":3,"file":"epub.js","sourceRoot":"","sources":["../src/epub.ts"],"names":[],"mappings":";;AAAA,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC/B,IAAI,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC3C,IAAI,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC;AAElD,QAAQ;AACR,2CAA2C;AAC3C,+CAA+C;AAC/C,kBAAkB;AAClB,4CAA4C;AAC5C,sCAAsC;AAEtC,yCAAyC;AACzC,4CAA4C;AAC5C,wEAAwE;AACxE,sCAAsC;AACtC,YAAY;AACZ,wCAAwC;AACxC,QAAQ;AACR,wDAAwD;AACxD,yFAAyF;AACzF,iEAAiE;AACjE,+DAA+D;AAC/D,oCAAoC;AACpC,YAAY;AACZ,QAAQ;AACR,IAAI;AAEJ,yBAAyB;AACzB,+BAA+B;AAE/B,yBAAyB;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;IAwBI;AACJ,MAAa,IAAI;IA0Bd,YAAY,KAAK,EAAE,SAAS,EAAE,QAAQ;QAlBtC,aAAQ,GAWC,EAAE,CAAC;QACZ,aAAQ,G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C,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YAC5E,iEAAiE;YACjE,gBAAgB;YAChB,uDAAuD;YACvD,gBAAgB;YAChB,OAAO;YAEP,4DAA4D;YAC5D,kBAAkB;SACpB;aAAM;YACJ,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;SACpC;IACJ,CAAC;IAAA,CAAC;CAsBJ;AAnsBD,oBAmsBC"} \ No newline at end of file diff --git a/src/epub.ts b/src/epub.ts index ff5a26c..aac0eee 100644 --- a/src/epub.ts +++ b/src/epub.ts @@ -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; }