From 40f253c86bc467f135eaa7d8a09f7b59a5337950 Mon Sep 17 00:00:00 2001 From: n1073645 Date: Wed, 4 Dec 2019 12:31:22 +0000 Subject: [PATCH] Repaired the Object Identifier to Hex regex --- src/core/operations/ObjectIdentifierToHex.mjs | 2 +- src/core/operations/URLDecode.mjs | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/core/operations/ObjectIdentifierToHex.mjs b/src/core/operations/ObjectIdentifierToHex.mjs index 31abfba4..1cd729a1 100644 --- a/src/core/operations/ObjectIdentifierToHex.mjs +++ b/src/core/operations/ObjectIdentifierToHex.mjs @@ -28,7 +28,7 @@ class ObjectIdentifierToHex extends Operation { this.args = []; this.checks = new magicObject([ { - match: "^\\s*([0-9]{1,3}.?)+^\\s*$", + match: "^\\s*([0-9]{1,3}\.?)+\\s*$", flags: "", args: [] } diff --git a/src/core/operations/URLDecode.mjs b/src/core/operations/URLDecode.mjs index 05b6237b..dacf0714 100644 --- a/src/core/operations/URLDecode.mjs +++ b/src/core/operations/URLDecode.mjs @@ -31,16 +31,7 @@ class URLDecode extends Operation { flags: "i", args: [], } - ], - /* [ - { - match: "^(?:(http(s)?|ftp):\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$", - flags: "i", - shouldMatch: true, - args: [] - } - ] */ - ); + ]); } /**