diff --git a/tabby-electron/src/pathDrop.ts b/tabby-electron/src/pathDrop.ts index 1f96c918..9b39a696 100644 --- a/tabby-electron/src/pathDrop.ts +++ b/tabby-electron/src/pathDrop.ts @@ -20,6 +20,7 @@ export class PathDropDecorator extends TerminalDecorator { } private injectPath (terminal: BaseTerminalTabComponent, path: string) { + path = path.replace(/[\x00-\x1F\x7F]/g, '') if (path.includes(' ')) { path = `"${path}"` }