mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 10:14:31 -05:00
remove control characters from dropped paths
This commit is contained in:
@@ -20,6 +20,7 @@ export class PathDropDecorator extends TerminalDecorator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private injectPath (terminal: BaseTerminalTabComponent<any>, path: string) {
|
private injectPath (terminal: BaseTerminalTabComponent<any>, path: string) {
|
||||||
|
path = path.replace(/[\x00-\x1F\x7F]/g, '')
|
||||||
if (path.includes(' ')) {
|
if (path.includes(' ')) {
|
||||||
path = `"${path}"`
|
path = `"${path}"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user