{"size": 212, "ext": "js", "max_stars_repo_path": "web/src/util/validator.js", "max_stars_repo_name": "GZYangKui/fishpond", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/src/util/validator.js", "max_issues_repo_name": "GZYangKui/fishpond", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/src/util/validator.js", "max_forks_repo_name": "GZYangKui/fishpond", "max_forks_repo_forks_event_min_datetime": "2022-03-11T10:19:20.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-11T10:19:20.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 17.6666666667, "max_line_length": 68, "alphanum_fraction": 0.4905660377}
/**
 *
 * 验证邮箱地址是否正确
 *
 */
export function checkEmailFormat(value){
    if (!value){
        return false;
    }
    let reg = /^([a-zA-Z]|\d)(\w|-)+@[a-zA-Z\d]+\.([a-zA-Z]{2,4})$/;
    return reg.test(value);
}