Skip to content

Commit

Permalink
bugfix. pathname error in windows operation
Browse files Browse the repository at this point in the history
  • Loading branch information
qingguang.meiqg committed Apr 17, 2015
1 parent 2b864ec commit bbb42ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function safeDecodeURIComponent(text) {
*/

function loadFile(name, dir, options, files) {
var pathname = options.prefix + name
var pathname = path.normalize(path.join(options.prefix, name))
var obj = files[pathname] = files[pathname] ? files[pathname] : {}
var filename = obj.path = path.join(dir, name)
var stats = fs.statSync(filename)
Expand Down

0 comments on commit bbb42ba

Please sign in to comment.