Skip to content

Commit

Permalink
fix: ensure proper path format
Browse files Browse the repository at this point in the history
path.join will take care of unneccessary delimiters, that may occur if the given pathes or if for instance 
`
options.basePath = some/path 
and
key = another/path
`
produces "some/path/another/path" instead of "some/pathanother/path"
  • Loading branch information
antarasi authored and dignifiedquire committed Nov 9, 2016
1 parent 01cf310 commit 9314248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/grunt-karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = function (grunt) {
Object.keys(data.preprocessors).forEach(function (key) {
var value = data.preprocessors[key]
if (options.basePath) {
key = options.basePath + key
key = path.join(options.basePath, key)
}
key = path.resolve(key)
key = grunt.template.process(key)
Expand Down

0 comments on commit 9314248

Please sign in to comment.