Skip to content

Commit 9314248

Browse files
antarasidignifiedquire
authored andcommitted
fix: ensure proper path format
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"
1 parent 01cf310 commit 9314248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/grunt-karma.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = function (grunt) {
9595
Object.keys(data.preprocessors).forEach(function (key) {
9696
var value = data.preprocessors[key]
9797
if (options.basePath) {
98-
key = options.basePath + key
98+
key = path.join(options.basePath, key)
9999
}
100100
key = path.resolve(key)
101101
key = grunt.template.process(key)

0 commit comments

Comments
 (0)