We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c4b106 + 89c4626 commit b7651e6Copy full SHA for b7651e6
src/formats/pkcs1.js
@@ -52,7 +52,7 @@ module.exports = {
52
}
53
54
if (_.isString(data)) {
55
- let pem = utils.trimSurroundingText(data, PRIVATE_OPENING_BOUNDARY, PRIVATE_CLOSING_BOUNDARY)
+ var pem = utils.trimSurroundingText(data, PRIVATE_OPENING_BOUNDARY, PRIVATE_CLOSING_BOUNDARY)
56
.replace(/\s+|\n\r|\n|\r$/gm, '');
57
buffer = Buffer.from(pem, 'base64');
58
} else {
0 commit comments