mirror of
https://github.com/actions/setup-node.git
synced 2025-07-27 00:48:24 +02:00
.
This commit is contained in:
parent
9fff29ba6c
commit
00c3b50fca
7278 changed files with 0 additions and 1778943 deletions
17
node_modules/lodash/_cloneRegExp.js
generated
vendored
17
node_modules/lodash/_cloneRegExp.js
generated
vendored
|
@ -1,17 +0,0 @@
|
|||
/** Used to match `RegExp` flags from their coerced string values. */
|
||||
var reFlags = /\w*$/;
|
||||
|
||||
/**
|
||||
* Creates a clone of `regexp`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} regexp The regexp to clone.
|
||||
* @returns {Object} Returns the cloned regexp.
|
||||
*/
|
||||
function cloneRegExp(regexp) {
|
||||
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
||||
result.lastIndex = regexp.lastIndex;
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = cloneRegExp;
|
Loading…
Add table
Add a link
Reference in a new issue