|
@ -298,7 +298,7 @@ PayPro.prototype.sinVerify = function() { |
|
|
// Helpers
|
|
|
// Helpers
|
|
|
|
|
|
|
|
|
function PEMtoDER(pem) { |
|
|
function PEMtoDER(pem) { |
|
|
pem = pem.replace(/^-----END [^-]+-----$/gmi/, ''); |
|
|
pem = pem.replace(/^-----END [^-]+-----$/gmi, ''); |
|
|
var parts = pem.split(/-----BEGIN [^-]+-----/); |
|
|
var parts = pem.split(/-----BEGIN [^-]+-----/); |
|
|
return parts.map(function(part) { |
|
|
return parts.map(function(part) { |
|
|
part = part.replace(/\s+/g, ''); |
|
|
part = part.replace(/\s+/g, ''); |
|
|