Blame view

node_modules/lodash/_getWrapDetails.js 479 Bytes
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  /** Used to match wrap detail comments. */
  var reWrapDetails = /\{
  \/\* \[wrapped with (.+)\] \*/,
      reSplitDetails = /,? & /;
  
  /**
   * Extracts wrapper details from the `source` body comment.
   *
   * @private
   * @param {string} source The source to inspect.
   * @returns {Array} Returns the wrapper details.
   */
  function getWrapDetails(source) {
    var match = source.match(reWrapDetails);
    return match ? match[1].split(reSplitDetails) : [];
  }
  
  module.exports = getWrapDetails;