✏️ 编辑:_cloneRegExp.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/_cloneRegExp.js
大小:439 B · 修改:2022-11-21 20:09:40 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
/** 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;
💾 保存
取消
保存为 UTF-8,换行统一为 LF