Skip to content

Commit

Permalink
Merge pull request #45 from gordeevbr/master
Browse files Browse the repository at this point in the history
Fix an issue where on POSIX-like filesystems first '/' in absolute file path would be lost.
  • Loading branch information
odino authored Apr 29, 2018
2 parents 4d65ada + 046f440 commit 5ce45d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var parse = function (content, file) {
body = body.replace(/^#import (.*);/m, function (includeStatement, file, data) {
var importThisFile = file.replace(/['"]/g, '');

return fs.readFileSync(path.join('./', context, importThisFile));
return fs.readFileSync(path.join(context, importThisFile));
})
.replace(/\r\n?/g, '\n');
}
Expand Down

0 comments on commit 5ce45d1

Please sign in to comment.