diff options
Diffstat (limited to 'lib/page/index.js')
-rw-r--r-- | lib/page/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/page/index.js b/lib/page/index.js index 0377f35..bcd83e6 100644 --- a/lib/page/index.js +++ b/lib/page/index.js @@ -41,7 +41,7 @@ function Page(book, filename) { // Can we parse it? extension = path.extname(this.path); - this.parser = parsers.get(extension); + this.parser = parsers.getByExt(extension); if (!this.parser) throw error.ParsingError(new Error('Can\'t parse file "'+this.path+'"')); this.type = this.parser.name; |