<commit_before>const email = {
  _regex: {
    default: /.+@.+\..+/
  },
  default: context => {
    if (context.value === null || context.value && !context.value.toString().match(email._regex.default)) {
      context.fail('Value must be a valid email')
    }
  }
}

export default email<commit_msg>Minor change to better check domains<commit_after>const email = {
  _regex: {
    default: /.+@.+\.\S+/
  },
  default: context => {
    if (context.value === null || context.value && !context.value.toString().match(email._regex.default)) {
      context.fail('Value must be a valid email')
    }
  }
}

export default email
{'fraction_non_alphanumeric': 0.1762820512820513, 'fraction_numerical': 0.0, 'mean_word_length': 3.0064102564102564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3487951', 'n_tokens_mistral': 202, 'n_tokens_neox': 197, 'n_words': 45}