Skip to content

Commit

Permalink
Merge pull request #410 from PorkCharsui79/patch-1
Browse files Browse the repository at this point in the history
Added new SSH key type.
  • Loading branch information
chelnak authored May 16, 2022
2 parents 064cb64 + 230d072 commit 53fa9cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
end

def accounts_ssh_authorized_keys_line_parser_string(str)
matched = str.match(%r{((sk-ecdsa-|ssh-|ecdsa-)[^\s]+)\s+([^\s]+)\s+(.*)$})
matched = str.match(%r{((sk-ssh-ed25519|sk-ecdsa-|ssh-|ecdsa-)[^\s]+)\s+([^\s]+)\s+(.*)$})
raise ArgumentError, 'Wrong Keyline format!' unless matched && matched.length == 5
options = str[0, str.index(matched[0])].rstrip
[options, matched[1], matched[3], matched[4]]
Expand Down

0 comments on commit 53fa9cb

Please sign in to comment.