From 12bb7f8145187f3b28a3c7b1f879162ef402c7e0 Mon Sep 17 00:00:00 2001 From: Q191 <83848311+Q191@users.noreply.github.com> Date: Mon, 3 Jul 2023 16:21:58 +0800 Subject: [PATCH] Update fileSystemConfig.ts vscode-sshfs current impl not allow slash --- common/src/fileSystemConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/fileSystemConfig.ts b/common/src/fileSystemConfig.ts index 1d196e9..4130445 100644 --- a/common/src/fileSystemConfig.ts +++ b/common/src/fileSystemConfig.ts @@ -81,7 +81,7 @@ export function groupByGroup(configs: FileSystemConfig[]): [string, FileSystemCo } export interface FileSystemConfig extends ConnectConfig { - /** Name of the config. Can not exists of : \\" */ + /** Name of the config. Can not exists of : \\/" */ name: string; /** Optional label to display in some UI places (e.g. popups) */ label?: string; @@ -131,7 +131,7 @@ export function isFileSystemConfig(config: any): config is FileSystemConfig { export function invalidConfigName(name: string) { if (!name) return 'Missing a name for this SSH FS'; - if (name.match(/[\\"]+/)) return `A SSH FS name can not exists of : \\"`; + if (name.match(/[\\/"]+/)) return `A SSH FS name can not exists of : \\"`; return null; }