We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b06f0 commit 23b7e1cCopy full SHA for 23b7e1c
packages/core/src/common/path.spec.ts
@@ -271,10 +271,6 @@ describe('Path', () => {
271
});
272
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
const linuxHome = '/home/test-user';
279
const windowsHome = '/C:/Users/test-user';
280
packages/core/src/common/path.ts
@@ -215,7 +215,10 @@ export class Path {
215
if (!relativePath) {
216
return this;
217
}
218
- return new Path(this.raw + Path.separator + relativePath).normalize();
+ if (this.raw.endsWith(Path.separator)) {
219
+ return new Path(this.raw + relativePath);
220
+ }
221
+ return new Path(this.raw + Path.separator + relativePath);
222
223
224
/**
0 commit comments