File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,15 @@ function getKarmaReporterPluginPath(reporterName) {
49
49
require ( reporterPath ) ;
50
50
}
51
51
catch ( ex ) {
52
- throw 'Get Karma Reporter Plugin Path: Attempt to require reporter from path ' + reporterPath + ' with no success.' ;
52
+ throw 'Get Karma Reporter Plugin Path: Attempt to require reporter from path ' +
53
+ reporterPath + ' with no success.' ;
54
+ }
55
+ reporterPath = path . normalize ( reporterPath ) ;
56
+ //quirk: nodejs identifies all windows (both win32 and win64) as win32
57
+ if ( process . platform === 'win32' ) {
58
+ //replace any single backslash characters in file paths with
59
+ //double backslash on windows; neither path.normalize nor path.resolve do this
60
+ reporterPath = reporterPath . replace ( / \\ / g , '\\\\' ) ;
53
61
}
54
62
return reporterPath ;
55
63
}
You can’t perform that action at this time.
0 commit comments