Skip to content

Commit

Permalink
fix: trim prompt line in ssh (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
scnwwu authored Sep 12, 2024
1 parent 0743a3d commit 3471f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/connection/ssh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class SSHSession extends Session {
// run completed
this.getResult();
}
if (!(line.endsWith("?") || line.endsWith(">"))) {
if (!(line.trimEnd().endsWith("?") || line.endsWith(">"))) {
this.html5FileName = extractOutputHtmlFileName(
line,
this.html5FileName,
Expand Down

0 comments on commit 3471f30

Please sign in to comment.