mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 06:54:06 +02:00
Remove only trailing slashes (#3183)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user