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', () => {
271271 } ) ;
272272 } ) ;
273273
274- it ( 'Should not produce joined paths with double initial //' , ( ) => {
275- expect ( new Path ( '/' ) . join ( '/something/absolute' ) . toString ( ) ) . eq ( '/something/absolute' ) ;
276- } ) ;
277-
278274 const linuxHome = '/home/test-user' ;
279275 const windowsHome = '/C:/Users/test-user' ;
280276
Original file line number Diff line number Diff line change @@ -215,7 +215,10 @@ export class Path {
215215 if ( ! relativePath ) {
216216 return this ;
217217 }
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 ) ;
219222 }
220223
221224 /**
You can’t perform that action at this time.
0 commit comments