add comment
This commit is contained in:
parent
665a2d2f8e
commit
1c1b9d00a9
|
@ -4,6 +4,7 @@ var PEM = module.exports;
|
||||||
var Enc = require('./encoding.js');
|
var Enc = require('./encoding.js');
|
||||||
|
|
||||||
PEM.packBlock = function (opts) {
|
PEM.packBlock = function (opts) {
|
||||||
|
// TODO allow for headers?
|
||||||
var n = opts.lineLength || 64;
|
var n = opts.lineLength || 64;
|
||||||
var re = new RegExp('.{1,' + n + '}', 'g');
|
var re = new RegExp('.{1,' + n + '}', 'g');
|
||||||
return '-----BEGIN ' + opts.type + '-----\n'
|
return '-----BEGIN ' + opts.type + '-----\n'
|
||||||
|
|
Loading…
Reference in New Issue