File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,12 @@ module.exports = {
128128 * @param data
129129 */
130130 autoImport : function ( key , data ) {
131- if ( / ^ \s * - - - - - 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 ( data ) ) {
131+ if ( / ^ \s * - - - - - 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 * ) + ) ) \1 - - - - - E N D R S A P R I V A T E K E Y - - - - - \s * $ / g. test ( data ) ) {
132132 module . exports . privateImport ( key , data ) ;
133133 return true ;
134134 }
135135
136- if ( / ^ \s * - - - - - B E G I N R S A P U B L I C K E Y - - - - - \s * ( [ A - Z a - z 0 - 9 + / = ] + \s * ) + - - - - - E N D R S A P U B L I C K E Y - - - - - \s * $ / g. test ( data ) ) {
136+ if ( / ^ \s * - - - - - B E G I N R S A P U B L I C K E Y - - - - - \s * (? = ( ( [ A - Z a - z 0 - 9 + / = ] + \s * ) + ) ) \1 - - - - - E N D R S A P U B L I C K E Y - - - - - \s * $ / g. test ( data ) ) {
137137 module . exports . publicImport ( key , data ) ;
138138 return true ;
139139 }
Original file line number Diff line number Diff line change @@ -167,12 +167,12 @@ module.exports = {
167167 * @param data
168168 */
169169 autoImport : function ( key , data ) {
170- if ( / ^ \s * - - - - - B E G I N P R I V A T E K E Y - - - - - \s * ( [ A - Z a - z 0 - 9 + / = ] + \s * ) + - - - - - E N D P R I V A T E K E Y - - - - - \s * $ / g. test ( data ) ) {
170+ if ( / ^ \s * - - - - - B E G I N P R I V A T E K E Y - - - - - \s * (? = ( ( [ A - Z a - z 0 - 9 + / = ] + \s * ) + ) ) \1 - - - - - E N D P R I V A T E K E Y - - - - - \s * $ / g. test ( data ) ) {
171171 module . exports . privateImport ( key , data ) ;
172172 return true ;
173173 }
174174
175- if ( / ^ \s * - - - - - 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 ( data ) ) {
175+ if ( / ^ \s * - - - - - B E G I N P U B L I C K E Y - - - - - \s * (? = ( ( [ A - Z a - z 0 - 9 + / = ] + \s * ) + ) ) \1 - - - - - E N D P U B L I C K E Y - - - - - \s * $ / g. test ( data ) ) {
176176 module . exports . publicImport ( key , data ) ;
177177 return true ;
178178 }
You can’t perform that action at this time.
0 commit comments