Version 1
[yaffs-website] / node_modules / uncss / node_modules / form-data / node_modules / lodash / _getWrapDetails.js
diff --git a/node_modules/uncss/node_modules/form-data/node_modules/lodash/_getWrapDetails.js b/node_modules/uncss/node_modules/form-data/node_modules/lodash/_getWrapDetails.js
new file mode 100644 (file)
index 0000000..3bcc6e4
--- /dev/null
@@ -0,0 +1,17 @@
+/** 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;