File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -271,10 +271,6 @@ describe('Path', () => {
271
271
} ) ;
272
272
} ) ;
273
273
274
- it ( 'Should not produce joined paths with double initial //' , ( ) => {
275
- expect ( new Path ( '/' ) . join ( '/something/absolute' ) . toString ( ) ) . eq ( '/something/absolute' ) ;
276
- } ) ;
277
-
278
274
const linuxHome = '/home/test-user' ;
279
275
const windowsHome = '/C:/Users/test-user' ;
280
276
Original file line number Diff line number Diff line change @@ -215,7 +215,10 @@ export class Path {
215
215
if ( ! relativePath ) {
216
216
return this ;
217
217
}
218
- return new Path ( this . raw + Path . separator + relativePath ) . normalize ( ) ;
218
+ if ( this . raw . endsWith ( Path . separator ) ) {
219
+ return new Path ( this . raw + relativePath ) ;
220
+ }
221
+ return new Path ( this . raw + Path . separator + relativePath ) ;
219
222
}
220
223
221
224
/**
You can’t perform that action at this time.
0 commit comments