From b7a978505f8ea4f4d98dc5f166875db80bef0d8e Mon Sep 17 00:00:00 2001 From: CPlusSharp Date: Wed, 17 Nov 2021 20:19:42 +0100 Subject: [PATCH] PEMToHex: add magic check so it gets found --- src/core/operations/PEMToHex.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/operations/PEMToHex.mjs b/src/core/operations/PEMToHex.mjs index 575f6f77..1c42d6a9 100644 --- a/src/core/operations/PEMToHex.mjs +++ b/src/core/operations/PEMToHex.mjs @@ -28,6 +28,12 @@ class PEMToHex extends Operation { this.inputType = "string"; this.outputType = "string"; this.args = []; + this.checks = [ + { + "pattern": "----BEGIN ([A-Z][A-Z ]+[A-Z])-----", + "args": [] + } + ]; } /**