Skip to content

Commit

Permalink
fix(mirinae): update pem_key regex (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulmoJ authored Jan 25, 2024
1 parent 988cebc commit 5e9d493
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type Ajv from 'ajv';

const pemKeyRegex = /^-----BEGIN [A-Z]+ PRIVATE KEY-----\r?\n([a-zA-Z0-9/+=\r\n]+)\r?\n-----END [A-Z]+ PRIVATE KEY-----$/;
const pemKeyRegex = /^-----BEGIN ([A-Za-z0-9_\-\s]+)-----\r?\n([\s\S]+)\r?\n-----END \1-----$/;

export const addCustomFormats = (ajv: Ajv): void => {
ajv.addFormat('generate_id', true);
Expand Down

1 comment on commit 5e9d493

@vercel
Copy link

@vercel vercel bot commented on 5e9d493 Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

console – ./

console-git-master-cloudforet.vercel.app
console-cloudforet.vercel.app

Please sign in to comment.