File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ describe("utils - sanitizing functions :", () => {
79
79
{ file : "./../file" , result : "file" } ,
80
80
{ file : "../../file" , result : "file" } ,
81
81
{ file : "../../file1/../file2" , result : "file2" } ,
82
- { file : "../subfolder/file2" , result : ` subfolder${ pth . sep } file2` } ,
83
- { file : "../subfolder2/file2" , result : ` subfolder2${ pth . sep } file2` } ,
84
- { file : "../subfolder/file2" , result : ` subfolder${ pth . sep } file2` } ,
85
- { file : "../../subfolder2/file2" , result : ` subfolder2${ pth . sep } file2` }
82
+ { file : "../subfolder/file2" , result : " subfolder/ file2" } ,
83
+ { file : "../subfolder2/file2" , result : " subfolder2/ file2" } ,
84
+ { file : "../subfolder/file2" , result : " subfolder/ file2" } ,
85
+ { file : "../../subfolder2/file2" , result : " subfolder2/ file2" }
86
86
] ;
87
87
88
88
for ( let test of tests ) {
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ Utils.canonical = function (/*string*/ path) {
208
208
if ( ! path ) return "" ;
209
209
// trick normalize think path is absolute
210
210
var safeSuffix = pth . posix . normalize ( "/" + path . split ( "\\" ) . join ( "/" ) ) ;
211
- return pth . join ( "." , safeSuffix ) ;
211
+ return pth . posix . join ( "." , safeSuffix ) ;
212
212
} ;
213
213
214
214
// make abolute paths taking prefix as root folder
You can’t perform that action at this time.
0 commit comments