Jelajahi Sumber

Docstrings added for Magic functions

n1073645 5 tahun lalu
induk
melakukan
5b6a53be3e
1 mengubah file dengan 9 tambahan dan 3 penghapusan
  1. 9 3
      src/core/lib/Magic.mjs

+ 9 - 3
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) {
     inputRegexMatch(opPatterns) {
         const matches = [];
         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) {
     entropyInputMatch(opPatterns) {
         const matches = [];
         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[]}
      * @returns {Object[]}
      */
      */