Urara-Blog/node_modules/.pnpm-store/v3/files/74/5e79c52f9c92d99c5e4500a683a618f8f0aa68cd55d07e18911866a20cc5e3142769c83c9ca2c4bf98d8a456ac3b41960f29dec0af1f0060b4b14e10184268
2022-08-14 01:14:53 +08:00

17 lines
479 B
Text

/** Used to match wrap detail comments. */
var reWrapDetails = /\{\n\/\* \[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;