Skip to content

Commit

Permalink
Docstrings added for Magic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
n1073645 committed Mar 12, 2020
1 parent 5b5105c commit 5b6a53b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/core/lib/Magic.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand All @@ -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 = [];
Expand All @@ -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[]}
*/
Expand Down

0 comments on commit 5b6a53b

Please sign in to comment.