Skip to content

Commit

Permalink
Fix breakage on node 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bahamat committed Jan 6, 2022
1 parent e3ef2fd commit 7a21181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formats/putty.js
Expand Up @@ -117,7 +117,7 @@ function read(buf, options) {
{ name: 'q', data: sshbuf.readBuffer() },
{ name: 'iqmp', data: sshbuf.readBuffer() }
];
} else if (alg.startsWith('ecdsa-sha2-nistp')) {
} else if (alg.match(/^ecdsa-sha2-nistp/)) {
privateKeyParts = [ {
name: 'd', data: sshbuf.readBuffer()
} ];
Expand Down

0 comments on commit 7a21181

Please sign in to comment.