From 7a21181f5c5fb2bc7f479a1703169df19b2687e5 Mon Sep 17 00:00:00 2001 From: Brian Bennett Date: Thu, 6 Jan 2022 13:04:07 -0800 Subject: [PATCH] Fix breakage on node 0.10 --- lib/formats/putty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formats/putty.js b/lib/formats/putty.js index cb9e449..e7b2add 100644 --- a/lib/formats/putty.js +++ b/lib/formats/putty.js @@ -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() } ];