remove control characters from dropped paths

This commit is contained in:
Eugene
2026-05-07 03:06:40 +02:00
parent 4d25d31481
commit e70fafdf4a
+1
View File
@@ -20,6 +20,7 @@ export class PathDropDecorator extends TerminalDecorator {
}
private injectPath (terminal: BaseTerminalTabComponent<any>, path: string) {
path = path.replace(/[\x00-\x1F\x7F]/g, '')
if (path.includes(' ')) {
path = `"${path}"`
}