/
Jzargo
/
chat-project
Обзор
Документация
Войти
/
Jzargo
/
chat-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
project
node_modules/lodash/_cloneRegExp.js
17 строк
439 B
Jzargo0729
321
27 мар 2025, 21:36
27 мар 2025, 21:36
18e1727
Код
Авторство
О чём код?
/** 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;