UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

16 lines (15 loc) 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const GLOBAL_1 = require("./GLOBAL"); /** * 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(GLOBAL_1.reWrapDetails); return match ? match[1].split(GLOBAL_1.reSplitDetails) : []; } exports.default = getWrapDetails;