Skip to content

Commit

Permalink
Fixes failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
silentrob committed Feb 6, 2014
1 parent 0948951 commit 4e34e0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports.index = function(dirPath){

files.forEach(function(file){
var local = file.split('.');
var appPart = local.shift();
var appPart = local.join("_");

// DOT files are ignored.
if (file[0] !== ".") {
Expand All @@ -63,6 +63,7 @@ exports.index = function(dirPath){
"localUrl" : 'http://' + appPart + "." + host,
"localPath" : path.resolve(dirPath, file)
});

}
});

Expand All @@ -89,7 +90,9 @@ exports.hostProjectFinder = function(dirPath){

files.forEach(function(file){
var fp = file.split('.');
if (appPart == fp[0]) {
var filePart = fp.join("_");

if (appPart == filePart) {
matches.push(file);
}
});
Expand Down

0 comments on commit 4e34e0e

Please sign in to comment.