diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-29 23:13:31 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-29 23:13:31 +0200 |
commit | db1a0aedf88ef467058408a1a607ada182174c33 (patch) | |
tree | 2fac8d40a4be614eda9e376f0b0b0292125a15e4 /lib/api | |
parent | 01a26fda2596fc7ffefec4a7e0a79d5fc97d44ba (diff) | |
download | gitbook-db1a0aedf88ef467058408a1a607ada182174c33.zip gitbook-db1a0aedf88ef467058408a1a607ada182174c33.tar.gz gitbook-db1a0aedf88ef467058408a1a607ada182174c33.tar.bz2 |
Fix listing of plugins when contains "-"
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/encodeGlobal.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js index 073bc13..89cea59 100644 --- a/lib/api/encodeGlobal.js +++ b/lib/api/encodeGlobal.js @@ -1,5 +1,6 @@ var Promise = require('../utils/promise'); var PathUtils = require('../utils/path'); +var fs = require('../utils/fs'); var deprecate = require('./deprecate'); var encodeConfig = require('./encodeConfig'); @@ -15,7 +16,7 @@ var fileToURL = require('../output/helper/fileToURL'); */ function encodeGlobal(output) { var book = output.getBook(); - var fs = book.getContentFS(); + var bookFS = book.getContentFS(); var logger = output.getLogger(); var outputFolder = output.getRoot(); @@ -42,7 +43,7 @@ function encodeGlobal(output) { @return {Promise<Buffer>} */ readFile: function(fileName) { - return fs.read(fileName); + return bookFS.read(fileName); }, /** @@ -52,7 +53,7 @@ function encodeGlobal(output) { @return {Promise<String>} */ readFileAsString: function(fileName) { - return fs.readAsString(fileName); + return bookFS.readAsString(fileName); }, output: { |