diff --git a/ca-store-generator.js b/ca-store-generator.js index 86f8e93..836753d 100644 --- a/ca-store-generator.js +++ b/ca-store-generator.js @@ -115,9 +115,9 @@ function parseCertData(lines) { } function dumpCerts(certs, filename, pemsDir) { - certs.forEach(function (cert, i) { + certs.forEach(function (cert) { var pem = cert.quasiPEM() - , pemName = pem.name.toLowerCase().replace(/\W/, '-').replace(/-+/, '-') + , pemName = pem.name.toLowerCase().replace(/\W/g, '-').replace(/-+/g, '-') , pemsFile = path.join(pemsDir, pemName + '.pem') ;