Skip to content

Commit

Permalink
Fix fingerprint prettify when fingerprint is not a multiple of 5
Browse files Browse the repository at this point in the history
  • Loading branch information
R1tschY committed May 27, 2024
1 parent dd7711d commit fc9ee1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/qml/components/EncryptionInfo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ Label {
var parts = match.split(":")
var result = ""
for (var i = 0; i < parts.length; i += 5) {
result += parts[i + 0] + ":" + parts[i + 1] + ":"
+ parts[i + 2] + ":" + parts[i + 3] + ":" + parts[i + 4]
+ "\n"
result += parts.slice(i, i + 5).join(":") + "\n"
}

return "<pre style=\"text-align: center;\">" + result + "</pre><br>"
Expand Down

0 comments on commit fc9ee1c

Please sign in to comment.