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