Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Mar 1, 2023
1 parent 2176a89 commit a40004c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ssh/sshDestination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ export default class SSHDestination {
}

toEncodedString(): string {
let result = this.toString();
if (result.toLowerCase() !== result) {
return result.replace(/[A-Z]/g, (ch) => `\\x${ch.charCodeAt(0).toString(16).toLowerCase()}`);
}
return result;
return this.toString().replace(/[A-Z]/g, (ch) => `\\x${ch.charCodeAt(0).toString(16).toLowerCase()}`);
}
}

0 comments on commit a40004c

Please # to comment.