* Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp.
(regexp)
| 1200 | * @returns {Object} Returns the cloned regexp. |
| 1201 | */ |
| 1202 | function cloneRegExp(regexp) { |
| 1203 | var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); |
| 1204 | result.lastIndex = regexp.lastIndex; |
| 1205 | return result; |
| 1206 | } |
| 1207 | |
| 1208 | /** |
| 1209 | * Creates a clone of `set`. |
no test coverage detected
searching dependent graphs…