File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ module.exports = (function() {
6161 * @param pem {string}
6262 */
6363 NodeRSA . prototype . loadFromPEM = function ( pem ) {
64- if ( / ^ - - - - - B E G I N R S A P R I V A T E K E Y - - - - - \s ( [ A - Z a - z 0 - 9 + / = ] + \s ) + - - - - - E N D R S A P R I V A T E K E Y - - - - - $ / g. test ( pem ) ) {
64+ if ( / ^ - - - - - B E G I N R S A P R I V A T E K E Y - - - - - \s ( [ A - Z a - z 0 - 9 + / = ] + \s ) + - - - - - E N D R S A P R I V A T E K E Y - - - - - \s * $ / g. test ( pem ) ) {
6565 this . $loadFromPrivatePEM ( pem , 'base64' ) ;
66- } else if ( / ^ - - - - - B E G I N P U B L I C K E Y - - - - - \s ( [ A - Z a - z 0 - 9 + / = ] + \s ) + - - - - - E N D P U B L I C K E Y - - - - - $ / g. test ( pem ) ) {
66+ } else if ( / ^ - - - - - B E G I N P U B L I C K E Y - - - - - \s ( [ A - Z a - z 0 - 9 + / = ] + \s ) + - - - - - E N D P U B L I C K E Y - - - - - \s * $ / g. test ( pem ) ) {
6767 this . $loadFromPublicPEM ( pem , 'base64' ) ;
6868 } else
6969 throw Error ( 'Invalid PEM format' ) ;
@@ -365,4 +365,4 @@ module.exports = (function() {
365365 } ;
366366
367367 return NodeRSA ;
368- } ) ( ) ;
368+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments