mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** Used to match wrap detail comments. */
|
||||
var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
|
||||
reSplitDetails = /,? & /;
|
||||
const reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/;
|
||||
const reSplitDetails = /,? & /;
|
||||
|
||||
/**
|
||||
* Extracts wrapper details from the `source` body comment.
|
||||
@@ -10,7 +10,7 @@ var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
|
||||
* @returns {Array} Returns the wrapper details.
|
||||
*/
|
||||
function getWrapDetails(source) {
|
||||
var match = source.match(reWrapDetails);
|
||||
const match = source.match(reWrapDetails);
|
||||
return match ? match[1].split(reSplitDetails) : [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user