From 5b6a53be3e98351648797b205e581b5f7c280b78 Mon Sep 17 00:00:00 2001 From: n1073645 Date: Thu, 12 Mar 2020 14:55:19 +0000 Subject: [PATCH] Docstrings added for Magic functions --- src/core/lib/Magic.mjs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/lib/Magic.mjs b/src/core/lib/Magic.mjs index 8ad5291f..b4decbe9 100644 --- a/src/core/lib/Magic.mjs +++ b/src/core/lib/Magic.mjs @@ -29,8 +29,11 @@ class Magic { } /** + * Finds operations that claim to be able to decode the input based on + * regular expression matches. * - * @param opPatterns + * @param {[Object]} opPatterns + * @returns {Array} */ inputRegexMatch(opPatterns) { const matches = []; @@ -48,7 +51,11 @@ class Magic { } /** + * Finds operations that claim to be able to decode the input based on entropy + * matches. * + * @param {[Object]} opPatterns + * @returns {Array} */ entropyInputMatch(opPatterns) { const matches = []; @@ -64,8 +71,7 @@ class Magic { } /** - * Finds operations that claim to be able to decode the input based on regular - * expression matches. + * Finds operations that claim to be able to decode the input based on criteria. * * @returns {Object[]} */