source: imaps-frontend/node_modules/lodash/_getWrapDetails.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 479 bytes
Line 
1/** Used to match wrap detail comments. */
2var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
3 reSplitDetails = /,? & /;
4
5/**
6 * Extracts wrapper details from the `source` body comment.
7 *
8 * @private
9 * @param {string} source The source to inspect.
10 * @returns {Array} Returns the wrapper details.
11 */
12function getWrapDetails(source) {
13 var match = source.match(reWrapDetails);
14 return match ? match[1].split(reSplitDetails) : [];
15}
16
17module.exports = getWrapDetails;
Note: See TracBrowser for help on using the repository browser.