Skip to content

Commit

Permalink
Merge pull request #1 from andrufel94/fix/pkcs1-es5
Browse files Browse the repository at this point in the history
fix: Change let - var for  es5 compatible
  • Loading branch information
andrufel94 committed Feb 22, 2019
2 parents 8c4b106 + 89c4626 commit b7651e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formats/pkcs1.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
}

if (_.isString(data)) {
let pem = utils.trimSurroundingText(data, PRIVATE_OPENING_BOUNDARY, PRIVATE_CLOSING_BOUNDARY)
var pem = utils.trimSurroundingText(data, PRIVATE_OPENING_BOUNDARY, PRIVATE_CLOSING_BOUNDARY)
.replace(/\s+|\n\r|\n|\r$/gm, '');
buffer = Buffer.from(pem, 'base64');
} else {
Expand Down

0 comments on commit b7651e6

Please sign in to comment.