Remove only trailing slashes (#3183)

This commit is contained in:
tomonacci 2026-01-05 13:42:10 -05:00 • committed by GitHub
commit 1ae217d74d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,12 @@ describe('Path Utilities', () => {
.toBe('/home/user/some path');
expect(normalizePath('"/usr/local/some app/"'))
.toBe('/usr/local/some app');
expect(normalizePath('/usr/local//bin/app///'))
.toBe('/usr/local/bin/app');
expect(normalizePath('/'))
.toBe('/');
expect(normalizePath('///'))
.toBe('/');
});
it('removes surrounding quotes', () => {