Skip to content

Commit

Permalink
Fixes slash indifference on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethormandy committed Sep 10, 2015
1 parent 3494fc6 commit d77ec85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ exports.process = function(req, rsp, next){

if(!sourceFile){
if (path.basename(normalizedPath) === "index.html") {
var pathAr = normalizedPath.split("/"); pathAr.pop() // Pop index.html off the list
var pathAr = normalizedPath.split(path.sep); pathAr.pop() // Pop index.html off the list
var prospectCleanPath = pathAr.join("/")
var prospectNormalizedPath = helpers.normalizeUrl(prospectCleanPath)
var prospectPriorityList = terraform.helpers.buildPriorityList(prospectNormalizedPath)
Expand Down

0 comments on commit d77ec85

Please sign in to comment.