diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-11-16 10:39:29 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-11-16 10:39:29 +0100 |
commit | 3a5207a0d2e9450a57c2cae851ddce03a247137f (patch) | |
tree | ea363b244c57332ae17aee0141f8f2d4a7fe994a /lib/book.js | |
parent | 8df6bdca89a0fce90015340d57b3f70292083c42 (diff) | |
parent | e38f3bb88423a17a7d0b292d86805a37f72cbff2 (diff) | |
download | gitbook-3a5207a0d2e9450a57c2cae851ddce03a247137f.zip gitbook-3a5207a0d2e9450a57c2cae851ddce03a247137f.tar.gz gitbook-3a5207a0d2e9450a57c2cae851ddce03a247137f.tar.bz2 |
Merge pull request #1016 from GitbookIO/fix/999
Fix #999: detection of structure should be case incensitive
Diffstat (limited to 'lib/book.js')
-rw-r--r-- | lib/book.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/book.js b/lib/book.js index cb00ab1..93c9486 100644 --- a/lib/book.js +++ b/lib/book.js @@ -614,12 +614,13 @@ Book.prototype.findFile = function(filename) { var filepath = basename+ext; - return that.fileExists(filepath) - .then(function(exists) { - if (!exists) return null; + return fs.findFile(that.root, filepath) + .then(function(realFilepath) { + if (!realFilepath) return null; + return { parser: parsers.get(ext), - path: filepath + path: realFilepath }; }); }); |