/** * @desc 判断是否为邮箱地址 * @param {String} str * @return {Boolean} */ const isEmail = (str) => { return /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(str) } module.exports = isEmail