-
Notifications
You must be signed in to change notification settings - Fork 5
Release 3.0 #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 3.0 #176
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -635,9 +635,10 @@ private string createPrivateKeyFile() | |
|
|
||
| private static string formatPrivateKey(string privateKey) | ||
| { | ||
| String keyType = privateKey.Contains("OPENSSH PRIVATE KEY") ? "OPENSSH" : "RSA"; | ||
| string header = privateKey.Substring(0, privateKey.IndexOf("KEY-----") + 8); | ||
| string footer = privateKey.Substring(privateKey.IndexOf("-----END")); | ||
|
|
||
| return privateKey.Replace($" {keyType} PRIVATE ", "^^^").Replace(" ", System.Environment.NewLine).Replace("^^^", $" {keyType} PRIVATE ") + System.Environment.NewLine; | ||
| return privateKey.Replace(header, "HEADER").Replace(footer, "FOOTER").Replace(" ", Environment.NewLine).Replace("HEADER", header).Replace("FOOTER", footer) + Environment.NewLine; | ||
|
Comment on lines
+638
to
+641
|
||
| } | ||
| } | ||
| } | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title indicates "Release 3.0" but the CHANGELOG.md shows version "2.6.4". This inconsistency could cause confusion about the actual version being released. Please ensure the version number in the CHANGELOG matches the intended release version indicated in the PR title.