fix: 修正 SFTP 附加 URL 的正则表达式匹配规则

This commit is contained in:
cmliu committed 2026-07-29 11:03:59 +08:00
1 parent 8d616cd87d
commit 8cb4d88b39
1 file changed
+1 -1
+1 -1
View File
@@ -714,7 +714,7 @@ export class SSHSession {
}
setSFTPAttachUrl(url: string): void {
if (!/^\/api\/ssh\/sftp\?/.test(url)) throw new Error('Invalid SFTP attach URL');
if (!/^\/api\/sftp\?/.test(url)) throw new Error('Invalid SFTP attach URL');
this.sftpAttachUrl = url;
}